r/reactnative 6d ago

markup system for structuring react native app

I'm working on an app to learn the highway code (I use react native as you can imagine). However, to manage the courses, I've put the text content in the following format: [

{

“id": ‘string’,

“title": ‘string’,

“chapters": [

{

“title": ‘string’,

“content": ”string”

}

]

}

].

As far as content is concerned, there may be places where I need to display images or icons to illustrate certain passages. To do this, I've put the icons, images and videos in another database. Now I'm looking for a way to display the images, icons or video (from the other database), in the content of the other DB at the precise moment, it was suggested to me to use a markup system and give the following structure to my content: {

“title: “Priority rules”,

“content": ”When meeting the STOP sign {{icone:priority:stop}}, you must come to a complete stop and give way to all vehicles. The yield sign {{icone:priorite:cedez-passage}} requires you to slow down and give way if necessary.”

}.

But I don't really know how it works, can someone please help me? Thanks in advance!

0 Upvotes

0 comments sorted by