Complete the code to import the main app component from the correct file.
import App from './[1]';
The main app component is usually in a file named App.js, so we import from './App'.
Complete the code to register the main app component with AppRegistry.
AppRegistry.registerComponent('[1]', () => App);
The app name is usually imported from app.json as appName and used here to register the app.
Fix the error in the import statement for React Native components.
import { View, Text, [1] } from 'react-native';
React Native components use PascalCase names like TouchableOpacity. Lowercase names cause errors.
Fill both blanks to create a simple functional component that returns a Text element.
const [1] = () => { return <[2]>Hello!</[2]>; };
View instead of Text to display text.The component name should be Greeting and it returns a Text element to display text.
Fill all three blanks to export the component as default and import React.
import [1] from 'react'; const Greeting = () => <Text>Hello!</Text>; export [2] Greeting; // Also import [3] from react-native for UI components
You import React to use JSX, export the component as default, and import View from react-native for UI layout.