Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Page model json for web spa(react) and mobile app( react native)

kishorekumar14
Level 9
Level 9

Hi team

 

I am planning to create same content for both web(aem+react) and mobile app(react native). For web app we will be using sling model exporte(model.json) and render it using react in front end.

 

I am having a doubt whether we can use the same model.json (sling model exporter) for react native mobile app to get the contents from aem  or I should create content fragments and give as asset api for mobile app?

content fragments Sling Model SPA
1 Accepted Solution
shelly-goel
Correct answer by
Community Advisor
Community Advisor

@kishorekumar14  It will work both ways, either if you're using model.json or content fragments for the mobile app. If the data is same then go ahead with model.json else leverage content fragments.

View solution in original post

1 Reply
shelly-goel
Correct answer by
Community Advisor
Community Advisor

@kishorekumar14  It will work both ways, either if you're using model.json or content fragments for the mobile app. If the data is same then go ahead with model.json else leverage content fragments.

View solution in original post