Is it possible to dynamically create components in React Native?

后端 未结 5 476
萌比男神i
萌比男神i 2021-02-04 06:40

Is it possible to dynamically create and add view components in React Native? For example, firstly I have only empty screen and information of all views come from server in JSO

5条回答
  •  独厮守ぢ
    2021-02-04 07:17

    Yes it is possible to dynamically create components in React Native based on data you retrieve from the server.

    However, if you are wanting the app to check for the latest JS code (including new components/views) without requiring an update through app store, you could use something like code-push. https://microsoft.github.io/code-push/

    Your question is somewhat vague so if I misunderstood then possibly you could give an example 'information of all views'.

提交回复
热议问题