Icon.button 正在工作,但 Icon.ToolbarAndroid 在 React Native 中不工作
Icon.button are working but Icon.ToolbarAndroid are not working in react native
我正在尝试在 React Native App 上工作 Material Icon.ToolbarAndroid 但它不工作
Info Fetching system and libraries information...
System:
OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo)
CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Memory: 1.89 GB / 15.61 GB
Shell: 5.0.3 - /bin/bash
Binaries:
Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
npm: 6.12.0 - ~/.nvm/versions/node/v10.15.3/bin/npm
SDKs:
Android SDK:
API Levels: 23, 27, 28
Build Tools: 27.0.3, 28.0.3
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.0-rc.3 => 0.61.0-rc.3
npmGlobalPackages:
react-native-cli: 2.0.1
这是我的代码
<Icon.ToolbarAndroid
navIconName={
activeRoute.name === routes[0].name ? "menu" : "arrow-left"
}
titleColor="#fff"
title={activeRoute.name}
onIconClicked={
activeRoute.name === routes[0].name ? showMenu : goBack
}
overflowIconName="dots-vertical"
style={{ height: 56 }}
actions={[
{ title: "About", show: "never", iconName: "information-outline" },
{ title: "Credits", show: "never", iconName: "account-circle" }
]}
onActionSelected={this.onActionSelected}
iconColor={'white'} iconSize={24} logoName={'home'}/>
在这里你可以找到错误
这些错误通常是由于拼写错误或导入不当造成的。您可以 post 完整的 index.js 文件吗?
我正在尝试在 React Native App 上工作 Material Icon.ToolbarAndroid 但它不工作
Info Fetching system and libraries information...
System:
OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo)
CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Memory: 1.89 GB / 15.61 GB
Shell: 5.0.3 - /bin/bash
Binaries:
Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
npm: 6.12.0 - ~/.nvm/versions/node/v10.15.3/bin/npm
SDKs:
Android SDK:
API Levels: 23, 27, 28
Build Tools: 27.0.3, 28.0.3
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.0-rc.3 => 0.61.0-rc.3
npmGlobalPackages:
react-native-cli: 2.0.1
这是我的代码
<Icon.ToolbarAndroid
navIconName={
activeRoute.name === routes[0].name ? "menu" : "arrow-left"
}
titleColor="#fff"
title={activeRoute.name}
onIconClicked={
activeRoute.name === routes[0].name ? showMenu : goBack
}
overflowIconName="dots-vertical"
style={{ height: 56 }}
actions={[
{ title: "About", show: "never", iconName: "information-outline" },
{ title: "Credits", show: "never", iconName: "account-circle" }
]}
onActionSelected={this.onActionSelected}
iconColor={'white'} iconSize={24} logoName={'home'}/>
在这里你可以找到错误
这些错误通常是由于拼写错误或导入不当造成的。您可以 post 完整的 index.js 文件吗?