Complete the code to import the core component that builds native UI in React Native.
import { [1] } from 'react-native';
The View component is a core React Native component that builds native UI containers.
Complete the code to create a native text element using a core component.
return <[1]>Hello, world!</[1]>;
The Text component renders native text elements in React Native.
Fix the error in the code to correctly use a core component that builds native UI.
const App = () => {
return (
<[1]>Welcome!</[1]>
);
};The Text component is the correct core component to display text content natively.
Fill both blanks to create a native UI container with a text child.
return ( <[1]> <[2]>Native UI</[2]> </[1]> );
View is used as a container, and Text displays native text inside it.
Fill all three blanks to build a native UI with a container, text, and a button.
return ( <[1]> <[2]>Press me</[2]> <[3] title="Click" onPress={() => alert('Clicked!')} /> </[1]> );
View is the container, Text shows text, and Button is the native clickable button.