【发布时间】:2017-07-29 07:21:10
【问题描述】:
我正在使用反应导航。在 DrawerContent 中,我添加了所有需要的东西来使抽屉的背景变成绿色,而它只覆盖了抽屉的一半。这是抽屉的代码和图像。 Here is the image
import React, { Component } from "react";
import { View, ScrollView,Button,Text,StyleSheet } from "react-native";
import { DrawerItems } from 'react-navigation';
const DrawerContent = (props) => (
<View style={style.container}>
<DrawerItems {...props} />
</View>
);
const style = StyleSheet.create({
container: {
flex:1
height: null,
backgroundColor: '#00FF00',
},
});
export default DrawerContent;
【问题讨论】:
标签: reactjs react-native react-native-android react-native-ios react-navigation