【问题标题】:How can I detect the device running my application with React Native?如何使用 React Native 检测运行我的应用程序的设备?
【发布时间】:2015-04-19 09:02:18
【问题描述】:

我想根据运行 iOS 应用程序的设备使用不同的样式。

我如何检测哪个设备正在运行该应用程序?

【问题讨论】:

    标签: react-native device-detection


    【解决方案1】:

    设备检测由 npm 提供的 react-native-device package 启用

    npm install react-native-device --save

    另见:https://github.com/GertjanReynaert/react-native-device

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-12-10
    • 1970-01-01
    • 2016-12-17
    • 2020-05-20
    • 2021-11-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多