mirror of
https://github.com/status-im/react-native.git
synced 2025-02-02 12:43:54 +00:00
f2affcf24d
Summary: Will create new issue to add more information to the `Components` section of the Tutorial since that was gutted by this change. Fixes #8156 Closes https://github.com/facebook/react-native/pull/8256 Differential Revision: D3459601 Pulled By: JoelMarcey fbshipit-source-id: 4038afc463bffcf8efda36d29bc7c443bbc8f4bd
616 B
616 B
id | title | layout | category | permalink | next |
---|---|---|---|---|---|
basics-component-text | Text | docs | Basics | docs/basics-component-text.html | basics-component-image |
The most basic component in React Native is the Text
component. The Text
component simply renders text.
This example displays the string
"Hello World!"
on the device.
import React from 'react';
import { AppRegistry, Text } from 'react-native';
const App = () => {
return (
<Text>Hello World!</Text>
);
}
// App registration and rendering
AppRegistry.registerComponent('MyApp', () => App);