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

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

Avatar

Avatar
Validate 1
Level 2
kishorek1264980
Level 2

Likes

5 likes

Total Posts

37 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

5 likes

Total Posts

37 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?

Assets HTTP API Content Distribution content fragments react React JS Sling exporter Sling Model

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
shelly-goel
MVP

Likes

155 likes

Total Posts

301 posts

Correct Reply

82 solutions
Top badges earned
Validate 1
Shape 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
shelly-goel
MVP

Likes

155 likes

Total Posts

301 posts

Correct Reply

82 solutions
Top badges earned
Validate 1
Shape 1
Ignite 1
Give Back 5
Give Back 3
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)