Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-native-gvr
Advanced tools
$ npm install react-native-gvr --save
$ react-native link react-native-gvr
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-gvr
and add RNGvr.xcodeproj
libRNGvr.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNGvrPackage;
to the imports at the top of the filenew RNGvrPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-gvr'
project(':react-native-gvr').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gvr/android')
android/app/build.gradle
:
compile project(':react-native-gvr')
in ios folder create a Podfile
target 'myProject' do
pod 'GVRSDK'
# Your 'node_modules' directory is probably in the root of your project,
# but if not, adjust the `:path` accordingly
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'BatchedBridge',
'DevSupport' # Include this to enable In-App Devmenu if RN >= 0.43
# Add any other subspecs you want to use in your project
]
# Explicitly include Yoga if you are using RN >= 0.42.0
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
end
Still in ios folder install pods locally
pod install
pod update
copy ./node_modules/react-native-gvr/pod_post_install.sh
to ios folder
Open myProject.xcworkspace
and under myProject
> Build Settings
under Build Options
set ENABLE BITCODE to NO
###Android
./android/app/build.gradle
then set minSdkVersion 19
import { VideoView } from 'react-native-gvr'
<VideoView
style={{ height: 300, width: 200 }}
video={{
uri: 'https://raw.githubusercontent.com/googlevr/gvr-ios-sdk/master/Samples/VideoWidgetDemo/resources/congo.mp4',
type: 'mono'
}}
displayMode={'embedded'}
volume={1}
enableFullscreenButton
enableCardboardButton
enableTouchTracking
hidesTransitionView
enableInfoButton={false}
/>
FAQs
A bridge of react-native with google vr
We found that react-native-gvr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.