- npm install react-native-rhdevice-info --save
- react-native link react-native-rhdevice-info
Method | Description | Return Type | iOS | Android |
---|---|---|---|---|
getAPILevel() | APILevel | number | ❌ | ✅ |
getBundleId() | 获取BundleId | String | ✅ | ✅ |
getDeviceName() | 获取设备名称 | String | ✅ | ✅ |
getAppName() | 获取项目名称 | String | ✅ | ✅ |
getVersion() | 获取版本值 | String | ✅ | ✅ |