• Add this code in the component.js file destination file
    import Title from './src/components/importcomponentdemo';
  • Here’s the complete code:
    import React from 'react';
    import { AppRegistry } from 'react-native';
    import App from './src/components/importcomponentdemo';
    const App = () => (
       <Title />
    );
    AppRegistry.registerComponent('ComponentDemo', () => App);
BY Best Interview Question ON 02 Mar 2020