Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Mobile APP
→
PhoneGap in Mobile APP
→
How to import components in React Native?
1.
How to import components in React Native?
Answer»
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);
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
How to create stackNavigator in react native?
What are the other modules need for react native navigation?
How do you add react navigation to react native?
How Virtual Dom works in React Native?
What do you mean by Dispatch in react native?
Is React Native a Mobile App?
What are the disadvantages of React Native?
Is it possible to use the same code base for both Android and iOS in React Native?
What are the difference between a component and an element in React.
What is fabric in react native?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies