Open code-matt opened 4 years ago
I was able to get this to work by adding the following to my Podfile
:
pod 'RCTARKit', :path => "../node_modules/react-native-arkit/ios/RCTARKit.podspec"
pod 'PocketSVG'
So all together:
npx react-native init AwesomeProject
cd AwesomeProject
yarn add code-matt/react-native-arkit
cd ios
# <modify Podfile here>
pod install
# <set your code-sign and camera permissions>
npx react-native run-ios --device
Note: I don't think I ever ran the react-native link
step mentioned in the README, and it does warn me (error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually
) but it still works.
Thanks for giving it a test! I just tried again and was able to get it going without modifying Podfile (except to remove the test/tvios targets)
react-native init testproject --npm
cd testproject
npm install code-matt/react-native-arkit react-native-svg --save
cd ios
pod install
<open xcworkspace file>
<set signing certs and delete tvios and test targets>
<select physical device and click play>
Installing react-native-svg and letting it autolink gets those PocketSVG dependencies in there
I ended up with this package.json
{
"name": "testarkitfork",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-arkit": "github:code-matt/react-native-arkit",
"react-native-svg": "^11.0.1"
},
"devDependencies": {
"@babel/core": "7.8.6",
"@babel/runtime": "7.8.4",
"@react-native-community/eslint-config": "0.0.5",
"babel-jest": "24.9.0",
"eslint": "6.8.0",
"jest": "24.9.0",
"metro-react-native-babel-preset": "0.56.4",
"react-test-renderer": "16.9.0"
},
"jest": {
"preset": "react-native"
}
}
I wonder if yarn has anything to do with it, if you still have issues.