Answer the question
In order to leave comments, you need to log in
React Native, Expo: Native module cannot be null?
I'm making an IOS app in VScode with Expo, the problem happened while importing react-native-nfc-manager, my code is:
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import NfcManager, {NfcEvents} from 'react-native-nfc-manager';
export default function App() {
return (
Open up App.js to start working on your app!
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
Answer the question
In order to leave comments, you need to log in
expo does not know how to work with third-party modules, for this you need to do eject and compile projects natively (then xcode will already be needed for iOS)
as an option, you can install a virtual machine with a mac os, but it will be dumb
as another option to put a hackintosh will not be as dumb as on a virtual machine
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question