[英]Expo / React Native Reading Device Info
is there no way to read serial number using expo.有没有办法使用 expo 读取序列号。 I should be able to read using external packages like react-native-device-info but I can't do this without expo?
我应该能够使用react-native-device-info 之类的外部软件包进行读取,但如果没有 expo,我就无法做到这一点? because when i install this package i get this and similar errors.
因为当我安装这个 package 我得到这个和类似的错误。 I tried react-native link solution but it didn't work.
我尝试了 react-native 链接解决方案,但没有奏效。 I need to use expo for other reasons so I can't eject it.
由于其他原因,我需要使用 expo,所以我无法弹出它。 There is no part in expo device and constants where I can read these properties.
expo 设备和常量中没有我可以读取这些属性的部分。
react-native-device-info
depends on platform-specific native modules which will not link and compiled with the Expo Go client. react-native-device-info
依赖于平台特定的原生模块,这些模块不会与 Expo Go 客户端链接和编译。
Expo SDK provides a compatible alternative package to use with Expo Go Client - https://docs.expo.dev/versions/latest/sdk/device/ Expo SDK provides a compatible alternative package to use with Expo Go Client - https://docs.expo.dev/versions/latest/sdk/device/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.