Skip to content

Commit 7bbb358

Browse files
author
woi
committed
display line linked to selector
1 parent 5a5a5d8 commit 7bbb358

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

App/Containers/Example/ExampleScreen.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Platform, Text, View, Button } from 'react-native'
33
import { connect } from 'react-redux'
44
import { PropTypes } from 'prop-types'
55
import ExampleActions from 'App/Stores/Example/Actions'
6-
import { isHot } from 'App/Stores/Example/Selectors'
6+
import { liveInEurope } from 'App/Stores/Example/Selectors'
77
import Style from './ExampleScreenStyle'
88

99
/**
@@ -42,6 +42,9 @@ class ExampleScreen extends React.Component {
4242
: ''}
4343
</Text>
4444
<Text style={Style.text}>{user ? "I'm a fake user, my name is " + user.name : ''}.</Text>
45+
<Text style={Style.text}>
46+
{this.props.liveInEurope ? 'I live in Europe !' : "I don't live in Europe."}
47+
</Text>
4548
<Button onPress={this.props.fetchUser} title="Refresh" />
4649
</View>
4750
)
@@ -58,6 +61,7 @@ const mapStateToProps = (state) => ({
5861
user: state.example.get('user').toJS(),
5962
userIsLoading: state.example.get('userIsLoading'),
6063
userErrorMessage: state.example.get('userErrorMessage'),
64+
liveInEurope: liveInEurope(state),
6165
})
6266

6367
const mapDispatchToProps = (dispatch) => ({

0 commit comments

Comments
 (0)