diff --git a/src/modules/app/components/App.js b/src/modules/app/components/App.js index 95bd71446..0d01d6593 100644 --- a/src/modules/app/components/App.js +++ b/src/modules/app/components/App.js @@ -6,7 +6,7 @@ import { Provider } from 'react-redux' import I18nProviderContainer from '../../i18n/containers/I18nProviderContainer' import createReduxStore from '../createReduxStore' import IOSSafeAreaView from '../../../modules/platform/components/IOSSafeAreaView' -import AndroidStatusBarContainer from '../../platform/containers/AndroidStatusBarContainer' +import StatusBarContainer from '../containers/StatusBarContainer' import type { Store } from 'redux' import type { StateType } from '../StateType' import type { StoreActionType } from '../StoreActionType' @@ -23,7 +23,7 @@ class App extends React.Component<{||}> { <> - + diff --git a/src/modules/app/components/StatusBar.js b/src/modules/app/components/StatusBar.js new file mode 100644 index 000000000..fd6fbb873 --- /dev/null +++ b/src/modules/app/components/StatusBar.js @@ -0,0 +1,19 @@ +// @flow + +import * as React from 'react' +import type { ThemeType } from '../../theme/constants/theme' +import { StatusBar as ReactNativeStatusBar } from 'react-native' + +type PropsType = {| + theme: ThemeType +|} + +class StatusBar extends React.PureComponent { + render () { + return ( + + ) + } +} + +export default StatusBar diff --git a/src/modules/app/containers/StatusBarContainer.js b/src/modules/app/containers/StatusBarContainer.js new file mode 100644 index 000000000..e27839cac --- /dev/null +++ b/src/modules/app/containers/StatusBarContainer.js @@ -0,0 +1,6 @@ +// @flow + +import StatusBar from '../components/StatusBar' +import withTheme from '../../theme/hocs/withTheme' + +export default withTheme()(StatusBar) diff --git a/src/modules/platform/components/AndroidStatusBar.js b/src/modules/platform/components/AndroidStatusBar.js deleted file mode 100644 index dc518f7a9..000000000 --- a/src/modules/platform/components/AndroidStatusBar.js +++ /dev/null @@ -1,19 +0,0 @@ -// @flow - -import * as React from 'react' -import type { ThemeType } from '../../theme/constants/theme' -import { StatusBar } from 'react-native' - -type PropsType = {| - theme: ThemeType -|} - -class AndroidStatusBar extends React.PureComponent { - render () { - return ( - - ) - } -} - -export default AndroidStatusBar diff --git a/src/modules/platform/containers/AndroidStatusBarContainer.js b/src/modules/platform/containers/AndroidStatusBarContainer.js deleted file mode 100644 index b58c7b071..000000000 --- a/src/modules/platform/containers/AndroidStatusBarContainer.js +++ /dev/null @@ -1,6 +0,0 @@ -// @flow - -import AndroidStatusBar from '../components/AndroidStatusBar' -import withTheme from '../../theme/hocs/withTheme' - -export default withTheme()(AndroidStatusBar)