Question from the React Native (Legacy) test

How to add a React Native screen to a native app.

Hard
import React from 'react';
import { AppRegistry } from 'react-native';
import MyPage1 from './src/MyPage1';
import MyPage2 from './src/MyPage2';

AppRegistry.registerComponent('MyPage1', () => MyPage1);
AppRegistry.registerComponent('MyPage2', () => MyPage2);

What is the purpose of this code?

Author: Victor SabatierStatus: PublishedQuestion passed 374 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!