Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Community Advisor

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?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@Kishore_Kumar_  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

Avatar

Correct answer by
Employee Advisor

@Kishore_Kumar_  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.