import React from 'react';
import {Text, View} from 'react-native';

const SampleApp = () => {
  return (
    <View
      style={{
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center'
      }}>
      <Text>Hello, World!</Text>
    </View>
  )
}
export default SampleApp;

<aside> πŸ’‘ import React from 'react';

</aside>

(각 ν”Œλž«νΌμ— λ§žλŠ” λ„€μ΄ν‹°λΈŒ μ»΄ν¬λ„ŒνŠΈλ‘œ λ³€ν™˜λ  JSX λ₯Ό μ‚¬μš©ν•˜κΈ° μœ„ν•΄ React import

<aside> πŸ’‘ import {Text, View} from 'react-native';

</aside>

react-native μ—μ„œ Text, View μ»΄ν¬λ„ŒνŠΈλ₯Ό import

ν•΄λ‹Ή μ½”λ“œλŠ” SampleApp μ΄λΌλŠ” μƒˆλ‘œμš΄ μ»΄ν¬λ„ŒνŠΈλ₯Ό μ •μ˜

β†’ 즉 λ¦¬μ•‘νŠΈ λ„€μ΄ν‹°λΈŒ 앱을 λ§Œλ“ λ‹€λŠ” 것은 μˆ˜λ§Žμ€ μƒˆλ‘œμš΄ μ»΄ν¬λ„ŒνŠΈλ₯Ό λ§Œλ“œλŠ” 것을 의미

Props