Page model json for web spa(react) and mobile app( react native) | Community
Skip to main content
Kishore_Kumar_
Level 9
April 22, 2021
Solved

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

  • April 22, 2021
  • 1 reply
  • 793 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by shelly-goel

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

1 reply

shelly-goel
Adobe Employee
shelly-goelAdobe EmployeeAccepted solution
Adobe Employee
April 23, 2021

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