Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bugs on landing page code, make the url an easter egg #8387

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions website/src/react-native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ class WhyReactNativeIsSoGreat extends Component {
If you like React on the web, you'll like React Native.
</Text>
<Text>
You just use native components like '<View>' and '<Text>',
instead of web components like '<div>' and '<a>'.
You just use native components like 'View' and 'Text',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No way to escape them?

instead of web components like 'div' and 'span'.
</Text>
</View>
);
Expand All @@ -72,12 +72,12 @@ class AwkwardScrollingImageWithText extends Component {
render() {
return (
<ScrollView>
<Image source={{uri: 'http://facebook.github.io/react/thats-amazing.png'}} />
<Image source={{uri: 'https://i.chzbgr.com/full/7345954048/h7E2C65F9/'}} />
<Text>
On iOS, a React Native '<ScrollView>' uses a native UIScrollView.
On iOS, a React Native ScrollView uses a native UIScrollView.
On Android, it uses a native ScrollView.

On iOS, a React Native '<Image>' uses a native UIImageView.
On iOS, a React Native Image uses a native UIImageView.
On Android, it uses a native ImageView.

React Native wraps the fundamental native components, giving you
Expand Down