Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Image not shown until any key pressed #31

@LiuHongtao

Description

@LiuHongtao

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions