We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68e31f0 + dfff86b commit 505dc08Copy full SHA for 505dc08
App/Containers/Example/ExampleScreen.js
@@ -21,7 +21,7 @@ const instructions = Platform.select({
21
22
class ExampleScreen extends React.Component {
23
componentDidMount() {
24
- this.props.fetchUser()
+ this._fetchUser()
25
}
26
27
render() {
@@ -49,12 +49,16 @@ class ExampleScreen extends React.Component {
49
</Text>
50
</View>
51
)}
52
- <Button onPress={this.props.fetchUser} title="Refresh" />
+ <Button onPress={() => this._fetchUser()} title="Refresh" />
53
54
55
56
)
57
58
+
59
+ _fetchUser() {
60
+ this.props.fetchUser()
61
+ }
62
63
64
ExampleScreen.propTypes = {
0 commit comments