-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
30 lines (28 loc) · 699 Bytes
/
App.js
File metadata and controls
30 lines (28 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* Created by yzdd on 2018/3/11.
*/
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react'
import { observer } from 'mobx-react/native'
import { BottomModal } from './src'
import { observable } from 'mobx'
import { AsyncStorage, StatusBar, View } from 'react-native'
import { updateFocus } from 'react-navigation-is-focused-hoc'
@observer
export default class App extends Component {
render() {
return (
<View style={{ flex: 1 }}>
<BottomModal
onNavigationStateChange={(prevState, currentState) => {
updateFocus(currentState)
}}
/>
</View>
)
}
}