import { StyleSheet,Platform,StatusBar,Dimensions } from 'react-native'; const {width,height} = Dimensions.get('window'); {/*如果UI设计师的原型图是以6S为基准,6S的屏幕宽度为1334像素,那么算出缩放比例*/} let scale = width/1334; let navHeight = Platform.OS === 'ios' ? 128*scale : StatusBar.currentHeight + 40*scale; const styles = StyleSheet.create({ page:{ flex:1, backgroundColor:'#e5e5e5', }, container: { flex: 1, backgroundColor: '#e5e5e5', alignItems: 'center', justifyContent: 'center', }, list:{ height:50, marginBottom:10, }, item:{ height:50 } }) export default styles;