F
F
FQXs2020-05-07 05:58:45
React Native
FQXs, 2020-05-07 05:58:45

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',
},
});

Googled an error - you need to register links in xcode, but I have windows and no xcode - is it possible to solve the problem in some other way?
5KIkBd0.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nick, 2020-05-07
@FQXs

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)

R
Roman Alexandrovich, 2020-05-07
@RomReed

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 question

Ask a Question

731 491 924 answers to any question