react-native-drawer-layout icon indicating copy to clipboard operation
react-native-drawer-layout copied to clipboard

Image not shown until any key pressed

Open LiuHongtao opened this issue 7 years ago • 2 comments

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.

wx20170427-150444 2x wx20170427-150539 2x

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!

LiuHongtao avatar Apr 27 '17 07:04 LiuHongtao

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 👍

DanielMSchmidt avatar Apr 27 '17 12:04 DanielMSchmidt

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~

LiuHongtao avatar Apr 27 '17 17:04 LiuHongtao