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

Avatar

Avatar
Validate 1
Level 2
kishorek1264980
Level 2

Likes

6 likes

Total Posts

44 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
kishorek1264980
Level 2

Likes

6 likes

Total Posts

44 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 5
View profile
kishorek1264980
Level 2

22-04-2021

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

249 likes

Total Posts

410 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

249 likes

Total Posts

410 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile
shelly-goel
MVP

22-04-2021

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

Answers (0)