Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit e8d0c56

Browse files
author
Reinaldo Haynes
committed
Component message update.
1 parent ed1a35d commit e8d0c56

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/SampleViewComponent/index.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default class SampleView extends React.Component {
55
render() {
66
return (
77
<View>
8-
<Text>Hello World!</Text>
8+
<Text>{this.props.message}</Text>
99
</View>
1010
)
1111
}

src/components/SampleViewComponent/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react'
33
export default class SampleView extends React.Component {
44
render() {
55
return (
6-
<div>Hello World!</div>
6+
<div>{this.props.message}</div>
77
)
88
}
99
}

src/screens/StartScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class StartScreen extends React.Component {
3030

3131
render() {
3232
return (
33-
<SampleView />
33+
<SampleView {...this.state.text} />
3434
)
3535
}
3636
}

0 commit comments

Comments
 (0)