React Native 0.60
MAC OS Catalina 10.15 beta (19A558d)
XCODE 11
command:
react-native init vr
cd vr
npm install https://github.com/tiero/react-native-360.git
cd ios
-- not command--------
edit Podfile file with other editor add one line pod 'GVRSDK'
-- not command end --------
pod install
pod update
-- not command--------
Open myProject.xcworkspace and under myProject > Build Settings under Build Options set ENABLE BITCODE to NO
Drag the folder RNGoogleVR from node_modules/react-native-360/ios under your myProject and be sure to check Copy items if needed and Create groups
edit the App.js file
import React from 'react';
import { VideoView } from 'react-native-360';
const App = () => {
return (
<VideoView
style={{height:200,width:width}}
video={{ uri:'https://raw.githubusercontent.com/googlevr/gvr-ios-sdk/master/Samples/VideoWidgetDemo/resources/congo.mp4',
type: 'stereo'}}
displayMode={'embedded'}
volume={1}
enableFullscreenButton
enableCardboardButton
enableTouchTracking
hidesTransitionView
enableInfoButton={false}
/>
);
};
export default App;
change xcode signing select a development team
run this project
build error:
7 duplicate symbols for architecture arm64