How to use the react-native-nfc-manager.isSupported function in react-native-nfc-manager

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

github whitedogg13 / react-native-nfc-manager / example / AndroidTechTestNdef.js View on Github external
componentDidMount() {
        NfcManager.isSupported()
            .then(supported => {
                this.setState({ supported });
                if (supported) {
                    this._startNfc();
                }
            })
    }
github bailabs / tailpos / src / container / PaymentContainer / nfc_manager_initialization.js View on Github external
export function nfc_initialization(props, deviceId) {
  NfcManager.isSupported().then(result => {
    if (result) {
      check_tagged_nfc_card(props, deviceId);
    } else {
      showToastDanger("Device does not support NFC");
    }
  });
}
github whitedogg13 / react-native-nfc-manager / example / App.js View on Github external
componentDidMount() {
        NfcManager.isSupported()
            .then(supported => {
                this.setState({ supported });
                if (supported) {
                    this._startNfc();
                }
            })
    }