简体   繁体   English

Icon.button 正在工作,但 Icon.ToolbarAndroid 在本机反应中不起作用

[英]Icon.button are working but Icon.ToolbarAndroid are not working in react native

Im trying to get work Material Icon.ToolbarAndroid on React Native App but its not working我试图在 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

This is my code这是我的代码

<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'}/>

Here you can find the error在这里你可以找到错误

https://ibb.co/Y8JtyC5 https://ibb.co/Y8JtyC5

These errors often occur due to typos or improper importing.这些错误通常是由于拼写错误或不正确的导入而发生的。 Can you post the entirety oof your index.js file?您可以发布整个 oof 您的 index.js 文件吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM