
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
react-native-arkit
Advanced tools
React Native binding for iOS ARKit.
Note: ARKit is only supported by devices with A9 or later processors (iPhone 6s/7/SE, iPad 2017/Pro) on iOS 11 beta. You also need Xcode 9 beta to build the project.
$ npm install react-native-arkit --save
$ react-native link react-native-arkit
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-arkit
and add RCTARKit.xcodeproj
libRCTARKit.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<Sample React Native ARKit App
import React, { Component } from 'react';
import { AppRegistry, View } from 'react-native';
import ARKit from 'react-native-arkit';
export default class ReactNativeARKit extends Component {
componentDidMount() {
// Add a cube in the scene. Only support cube geometry at the moment
this.arkit.addCube({ x: 0, y: 0, z: 0, width: 0.2, height: 0.2, length: 0.2 });
}
render() {
return (
<View style={{ flex: 1 }}>
<ARKit
ref={arkit => this.arkit = arkit}
style={{ flex: 1 }}
debug
planeDetection
lightEstimation
onPlaneDetected={console.log} // event listener for plane detection
onPlaneUpdate={console.log} // event listener for plane update
/>
</View>
);
}
}
AppRegistry.registerComponent('ReactNativeARKit', () => ReactNativeARKit);
If you find a bug or would like to request a new feature, just open an issue. Your contributions are always welcome! Submit a pull request and see CONTRIBUTING.md
for guidelines.
FAQs
React Native binding for iOS ARKit
The npm package react-native-arkit receives a total of 83 weekly downloads. As such, react-native-arkit popularity was classified as not popular.
We found that react-native-arkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.