react-native-arkit
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "React Native binding for iOS ARKit", | ||
@@ -10,0 +10,0 @@ "author": "Zehao Li <qft.gtr@gmail.com>", |
@@ -95,2 +95,9 @@ # react-native-arkit | ||
/> | ||
<ARKit.Model | ||
pos={{ x: -0.2, y: 0, z: 0, frame: 'local' }} | ||
model={{ | ||
file: 'art.scnassets/ship.scn', // make sure you have the model file in the ios project | ||
scale: 0.01, | ||
}} | ||
/> | ||
</ARKit> | ||
@@ -227,4 +234,16 @@ </View> | ||
#### `<ARKit.Model />` | ||
SceneKit only supports `.scn` and `.dae` formats. | ||
##### Props | ||
| Prop | Type | | ||
|---|---| | ||
| `pos` | `{ x, y, z }` | | ||
| `model` | `{ file, scale }` | | ||
## 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
248
369897
1