Commit bd8ff959 authored by Qiu Xiang's avatar Qiu Xiang

调整 Example 配色

parent f5e6b6a7
import {StatusBar} from 'react-native'
import {StackNavigator} from 'react-navigation' import {StackNavigator} from 'react-navigation'
import Examples from './examples' import Examples from './examples'
import MapTypes from './map-types' import MapTypes from './map-types'
...@@ -7,6 +8,9 @@ import Controls from './controls' ...@@ -7,6 +8,9 @@ import Controls from './controls'
import Gestures from './gestures' import Gestures from './gestures'
import Marker from './marker' import Marker from './marker'
StatusBar.setBackgroundColor('#e0e0e0')
StatusBar.setBarStyle('dark-content')
export default StackNavigator({ export default StackNavigator({
Examples: {screen: Examples}, Examples: {screen: Examples},
MapTypes: {screen: MapTypes}, MapTypes: {screen: MapTypes},
...@@ -15,4 +19,11 @@ export default StackNavigator({ ...@@ -15,4 +19,11 @@ export default StackNavigator({
Controls: {screen: Controls}, Controls: {screen: Controls},
Gestures: {screen: Gestures}, Gestures: {screen: Gestures},
Marker: {screen: Marker}, Marker: {screen: Marker},
}, {
navigationOptions: {
headerTintColor: '#212121',
headerStyle: {
backgroundColor: '#f5f5f5',
},
},
}) })
...@@ -37,19 +37,23 @@ export default class Examples extends Component { ...@@ -37,19 +37,23 @@ export default class Examples extends Component {
} }
const styles = StyleSheet.create({ const styles = StyleSheet.create({
scrollView: {
flex: 1,
backgroundColor: '#f5f5f5',
},
group: { group: {
marginTop: 15, marginTop: 15,
borderTopWidth: StyleSheet.hairlineWidth, borderTopWidth: StyleSheet.hairlineWidth,
borderTopColor: '#ddd', borderTopColor: '#e0e0e0',
}, },
item: { item: {
padding: 15, padding: 15,
backgroundColor: '#fff', backgroundColor: '#fff',
borderBottomWidth: StyleSheet.hairlineWidth, borderBottomWidth: StyleSheet.hairlineWidth,
borderBottomColor: '#ddd', borderBottomColor: '#e0e0e0',
}, },
itemText: { itemText: {
fontSize: 16, fontSize: 16,
color: '#000', color: '#424242',
}, },
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment