How to use the react-native-vector-icons/MaterialCommunityIcons.getImageSource function in react-native-vector-icons

To help you get started, we’ve selected a few react-native-vector-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uport-project / uport-mobile / lib / screens / P2PContacts.js View on Github external
componentDidMount() {
        if(!isIOS) {
            MaterialIcons.getImageSource('qrcode-scan', 26, '#FFFFFF').then(icon => {
                this.props.navigator.setButtons(
                    {
                        fab: {
                            collapsedId: 'scan',
                            collapsedIcon: icon,
                            collapsedIconColor: colors.white,
                            backgroundColor: colors.brand
                        },
                    }
                )
            })
        }
    }
github uport-project / uport-mobile / lib / screens / Contacts.js View on Github external
componentDidMount() {
    if (!isIOS) {
      MaterialIcons.getImageSource('qrcode-scan', 26, '#FFFFFF').then(icon => {
        this.props.navigator.setButtons({
          fab: {
            collapsedId: 'scan',
            collapsedIcon: icon,
            collapsedIconColor: colors.white,
            backgroundColor: colors.brand,
          },
        })
      })
    }
  }
github uport-project / uport-mobile / lib / screens / Settings.tsx View on Github external
componentDidMount() {
    if (Device.isAndroid) {
      MaterialIcons.getImageSource('qrcode-scan', 26, '#FFFFFF').then(icon => {
        this.props.navigator.setButtons({
          fab: {
            collapsedId: 'scan',
            collapsedIcon: icon,
            collapsedIconColor: Theme.colors.primary.background,
            backgroundColor: Theme.colors.primary.brand,
          },
        })
      })
    }
  }
github justindannguyen / carsharing-react-native-redux-app / src / routes / Home / components / MapContainer / index.js View on Github external
taxiTypes.forEach(type => {
      Icon.getImageSource(type.icon, 25, "orangered").then(image =>
        this.setState({ ...this.state, [type.type]: image })
      )
    })
  }