react-native-arkit
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -27,2 +27,6 @@ // | ||
addCube(object) { | ||
return ARKitManager.addCube(object); | ||
} | ||
callback(name) { | ||
@@ -29,0 +33,0 @@ return event => { |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "React Native binding for iOS ARKit", | ||
@@ -10,0 +10,0 @@ "author": "Zehao Li <qft.gtr@gmail.com>", |
@@ -6,4 +6,6 @@ # react-native-arkit | ||
React Native binding for iOS ARKit | ||
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](https://developer.apple.com/download/). You also need [Xcode 9 beta](https://developer.apple.com/download/) to build the project. | ||
## Getting started | ||
@@ -37,2 +39,7 @@ | ||
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() { | ||
@@ -42,2 +49,3 @@ return ( | ||
<ARKit | ||
ref={arkit => this.arkit = arkit} | ||
style={{ flex: 1 }} | ||
@@ -47,4 +55,4 @@ debug | ||
lightEstimation | ||
onPlaneDetected={console.log} | ||
onPlaneUpdate={console.log} | ||
onPlaneDetected={console.log} // event listener for plane detection | ||
onPlaneUpdate={console.log} // event listener for plane update | ||
/> | ||
@@ -59,1 +67,5 @@ </View> | ||
``` | ||
## Contributing | ||
If you find a bug or would like to request a new feature, just [open an issue](https://github.com/HippoAR/react-native-arkit/issues/new). Your contributions are always welcome! Submit a pull request and see [`CONTRIBUTING.md`](CONTRIBUTING.md) for guidelines. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44436
17
42
67