这是我的代码
render() {
return (
<ToolbarAndroid
title="AwesomeApp"
logo={require('./res/ic_launcher.png')}
sytle={styles.toolbar}
actions={[{title: 'Settings', show: 'never'}]}
onActionSelected={this.onActionSelected} />
);
}
const styles = StyleSheet.create({
toolbar: {
backgroundColor: '#e9eaed',
height: 56,
width: 300,
},
});
上面的代码在模拟器上面并没有显示出toolbar,我通过开发者工具中的显示视图边界选项,也没有看到这个组件
github上面提到加上height可以让toolbar显示出来,我试了还是没有效果
StackOverflow上的讨论说加上width,加上之后没有任何效果
请问我上面的代码有什么问题吗