【问题标题】:TouchID / FingerprintScanner React-NativeTouchID / FingerprintScanner React-Native
【发布时间】:2018-04-19 11:53:28
【问题描述】:

我想为我正在使用 React-Native@0.54+ 开发的应用程序添加 TouchID / FingerprintScanner 支持,并且我使用的所有包我无法通过 react-native 链接将依赖项链接到它(甚至没有包-名字...)。

我通过“create-react-native-app”运行它并使用 Expo Client。

有什么想法/帮助吗?

【问题讨论】:

    标签: react-native fingerprint expo touch-id


    【解决方案1】:

    我认为你应该分离博览会。

    与 Expo 合作会给您带来很多好处……但如果您想实现更深层次的目标,Expo 会让您苦苦挣扎。

    我建议你放弃 Expo 并使用类似的库

    https://github.com/naoufal/react-native-touch-id 或者 https://github.com/hieuvp/react-native-fingerprint-scanner

    【讨论】:

      【解决方案2】:

      值得指出的是,Expo 通过其 LocalAuthentication 模块支持指纹扫描。在他们的documentation 中有一个示例小吃。

      【讨论】:

        【解决方案3】:

        有一个很好的例子here 所以看看。它解决了我的问题。

        【讨论】:

          【解决方案4】:

          您也可以在弹出的应用程序中使用 Expo 的指纹读取器库。我在这里解释了https://stackoverflow.com/a/64929151/7477198

          或者可以使用https://github.com/hieuvp/react-native-fingerprint-scanner#readme之类的库

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 2017-11-12
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2022-10-25
            • 2022-01-21
            • 1970-01-01
            • 2016-05-19
            相关资源
            最近更新 更多