react-native-drawer-layout
react-native-drawer-layout copied to clipboard
Image not shown until any key pressed
Hi,
Image not shown until any key pressed as below. It runs well on iOS. And it's ok also if I replace DrawerLayout with DrawerLayoutAndroid.
Here is the code of MainScene and Drawer.
class MainScene extends Component {
render() {
let navigationView = (
<Drawer/>
);
return (
<DrawerLayout
drawerWidth={300}
drawerPosition={DrawerLayout.positions.Left}
renderNavigationView={() => navigationView}>
<Text>MainScene</Text>
</DrawerLayout>
);
}
}
class Drawer extends Component {
render() {
return (
<View style={styles.container}>
<Image style={styles.logo} source={youdataLogo}/>
</View>
);
}
}
Thx!
Hey, thanks for reporting this! Would you be so kind to tell me the RN version you are using and if we speak about a local or online image? I don't know if it makes a difference, but I want to have a look into this tomorrow morning and I want to make sure that I have enough information to fix it 👍
It's local image in my case. And not only Press Key , Click Button make it happen also.
Here is the dependencies.
"dependencies": {
"react": "16.0.0-alpha.6",
"react-native": "0.43.4",
"react-native-drawer-layout": "^1.3.0"
},
Thx~