Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

NATIVE-437: Rename StatusBar #246

Merged
merged 1 commit into from
May 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/app/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -23,7 +23,7 @@ class App extends React.Component<{||}> {
<Provider store={this.store}>
<I18nProviderContainer>
<>
<AndroidStatusBarContainer />
<StatusBarContainer />
<IOSSafeAreaView>
<NavigatorContainer />
</IOSSafeAreaView>
Expand Down
19 changes: 19 additions & 0 deletions src/modules/app/components/StatusBar.js
Original file line number Diff line number Diff line change
@@ -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<PropsType> {
render () {
return (
<ReactNativeStatusBar backgroundColor={this.props.theme.colors.backgroundAccentColor} barStyle='dark-content' />
steffenkleinle marked this conversation as resolved.
Show resolved Hide resolved
)
}
}

export default StatusBar
6 changes: 6 additions & 0 deletions src/modules/app/containers/StatusBarContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// @flow

import StatusBar from '../components/StatusBar'
import withTheme from '../../theme/hocs/withTheme'

export default withTheme()(StatusBar)
19 changes: 0 additions & 19 deletions src/modules/platform/components/AndroidStatusBar.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/modules/platform/containers/AndroidStatusBarContainer.js

This file was deleted.