React native 如何在react native中检查操作系统是32位还是64位?

React native 如何在react native中检查操作系统是32位还是64位?,react-native,React Native,我有一个仅适用于32位体系结构的库。如何通过react native中的代码检查操作系统CPU体系结构?为此使用react native device info supported32BitAbis() 此设备支持的32位ABI的有序列表。 例如 DeviceInfo.supported64BitAbis().then(abis => { // ["arm64-v8a"] }); DeviceInfo.supported64BitAbis().then(abis => {

我有一个仅适用于32位体系结构的库。如何通过react native中的代码检查操作系统CPU体系结构?

为此使用
react native device info

supported32BitAbis()
此设备支持的32位ABI的有序列表。

例如

DeviceInfo.supported64BitAbis().then(abis => {
  // ["arm64-v8a"]
});
DeviceInfo.supported64BitAbis().then(abis => {
 // ["arm64-v8a"]
});
supported64BitAbis()
此设备支持的64位ABI的有序列表。

例如

DeviceInfo.supported64BitAbis().then(abis => {
  // ["arm64-v8a"]
});
DeviceInfo.supported64BitAbis().then(abis => {
 // ["arm64-v8a"]
});

我想它只是给出了在项目的gradle文件中添加的CPU架构列表。实际上我想知道当前运行的设备是32位还是64位?这有可能吗?看看这个