Skip to content

Commit

Permalink
Send the store as context, fix handleClick
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Jan 13, 2018
1 parent 6c17c0a commit 7eeaf77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ios/statiks/Info.plist
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>117</string>
<string>119</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
5 changes: 3 additions & 2 deletions src/index.js
Expand Up @@ -5,12 +5,13 @@ import config from 'react-native-config';
import { Screens, startApp } from 'screens';
import Store, { StoreProvider } from 'store';

const store = new Store();

if (!__DEV__) {
Sentry.config(config.SENTRY_DSN).install();
Sentry.setExtraContext({ store });
}

const store = new Store();

Array.from(Screens.entries()).forEach(([screenConst, screenModule]) =>
Navigation.registerComponent(
screenConst,
Expand Down
2 changes: 1 addition & 1 deletion src/screens/list/List.js
Expand Up @@ -68,7 +68,7 @@ export default class List extends Component {
this.state.pan.x.removeAllListeners();
}

handleClick() {
handleClick = () => {
this.props.navigator.push({ screen: SETTINGS });
}

Expand Down

0 comments on commit 7eeaf77

Please sign in to comment.