Reputation: 43
Trying to create a NEW project which targets -both- macos and ios/android seems to fail.
Steps:
It looks to me like the 'react-native' folder in the node modules is somehow screwing up the react-native-macos folder. I'm still trying a variety of things but it's been exhausting considering how easy 'merge into your existing project' sounds.
https://github.com/ptmt/react-native-macos <- what i want to merge in
Upvotes: 1
Views: 986
Reputation: 5643
You likely will not be able to use create-react-native-app
and react-native-macos
together without some trail and error. This is because create-react-native-app
actually creates an Expo
app which is built on top of react-native
but tries to abstract away a lot of the native details from the end user. For example you can't use any native modules that are not shipped with Expo
when using create-react-native-app
. The documentation of react-native-macos
is likely assuming you are using react-native init
which creates a base react-native
project that you have to handle building on your own instead of offloading the build process to Expo
.
Upvotes: 3