本机模块不能为空-React Native,Expo

时间:2020-05-07 01:32:38

标签: react-native expo react-native-ios

我做了expo的初始应用 我的代码:

import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import NfcManager, {NfcEvents} from 'react-native-nfc-manager';
export default function App() {
  return (
    <View style={styles.container}>
      <Text>Open up App.js to start working on your app!</Text>
    </View>
  );
}
const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

当我尝试导入NFC管理器时出现错误:本机模块不能为空 screenshot

Google表示其与IOS通知有关的错误,Windows VScode中的Im编码并且无法链接推送通知,我该如何解决此错误?我无法在没有Expo的情况下进行编码,因为据我所知,这只是从iPhone的Windows模拟我的应用程序的一种方法

1 个答案:

答案 0 :(得分:0)

我解决了这个问题:博览会不允许其他图书馆