diff --git a/.gitignore b/.gitignore
index 619395b..88c8499 100644
--- a/.gitignore
+++ b/.gitignore
@@ -81,3 +81,4 @@ DerivedData/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
+.DS_Store
diff --git a/appsample/App.js b/appsample/App.js
new file mode 100644
index 0000000..3abb538
--- /dev/null
+++ b/appsample/App.js
@@ -0,0 +1,124 @@
+import React, { Component } from 'react';
+import { AppRegistry, View , NativeModules} from 'react-native';
+import { ARKit } from 'react-native-arkit';
+export default class App extends Component {
+ constructor() {
+ super();
+ this.state = {
+ text: "beginning text"
+ }
+ setTimeout(()=>{
+ this.setState(()=>{
+ return {text:"He's OK"}
+ });
+ }, 5000)
+ }
+ componentDidMount() {
+ this.setState(()=> {
+ return {text: "Wilkimg is the best!"}
+ })
+
+ }
+ render() {
+ return (
+
+ console.log(e.nativeEvent)}
+ onPlaneDetected={console.log} // event listener for plane detection
+ onPlaneUpdate={console.log} // event listener for plane update
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ `,
+ pathFlatness: 0.1,
+ // it's also possible to specify a chamfer profile:
+ chamferRadius: 5,
+ chamferProfilePathSvg: `
+
+ `,
+ extrusion: 10,
+ }}
+ />
+
+
+ );
+ }
+}
diff --git a/ios/RCTARKit.xcodeproj/project.pbxproj b/ios/RCTARKit.xcodeproj/project.pbxproj
index 78c04cc..a70abd8 100644
--- a/ios/RCTARKit.xcodeproj/project.pbxproj
+++ b/ios/RCTARKit.xcodeproj/project.pbxproj
@@ -61,8 +61,6 @@
10FEF6121F774C9000EC21AE /* RCTARKitNodes.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTARKitNodes.m; sourceTree = ""; };
10FEF6131F774C9000EC21AE /* RCTARKitDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTARKitDelegate.h; sourceTree = ""; };
134814201AA4EA6300B7C361 /* libRCTARKit.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTARKit.a; sourceTree = BUILT_PRODUCTS_DIR; };
- B14C36631F960C500047CB67 /* PocketSVG.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PocketSVG.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- B14C36651F960C6E0047CB67 /* PocketSVG.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PocketSVG.framework; sourceTree = BUILT_PRODUCTS_DIR; };
B1990B201FCEEBD60001AE2F /* color-grabber.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "color-grabber.h"; sourceTree = ""; };
B1990B211FCEEBD60001AE2F /* color-grabber.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "color-grabber.m"; sourceTree = ""; };
B1CEA29E204C14090025C1B8 /* RCTARKitSpriteView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTARKitSpriteView.m; sourceTree = ""; };
@@ -128,19 +126,9 @@
105F124C1F7C0718006D4BA3 /* RCTConvert+ARKit.h */,
105F124D1F7C0718006D4BA3 /* RCTConvert+ARKit.m */,
134814211AA4EA7D00B7C361 /* Products */,
- B13FF7601F94F72400A6C92B /* Frameworks */,
);
sourceTree = "";
};
- B13FF7601F94F72400A6C92B /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- B14C36651F960C6E0047CB67 /* PocketSVG.framework */,
- B14C36631F960C500047CB67 /* PocketSVG.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
B1990B1F1FCEEBD60001AE2F /* color-grabber */ = {
isa = PBXGroup;
children = (
@@ -311,7 +299,7 @@
"$(SRCROOT)/../../react-native-arcl/ios",
../../../ios/Pods/Headers/Public/,
../../../ios/Pods/Headers/Public/React,
- "$(SRCROOT)/PocketSVG",
+ "$(SRCROOT)/../../../ios/Pods/PocketSVG/**",
);
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LIBRARY_SEARCH_PATHS = "$(inherited)";
@@ -333,7 +321,7 @@
"$(SRCROOT)/../../react-native-arcl/ios",
../../../ios/Pods/Headers/Public/,
../../../ios/Pods/Headers/Public/React,
- "$(SRCROOT)/PocketSVG",
+ "$(SRCROOT)/../../../ios/Pods/PocketSVG/**",
);
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LIBRARY_SEARCH_PATHS = "$(inherited)";
diff --git a/package.json b/package.json
index 111b5b8..7e1ed41 100644
--- a/package.json
+++ b/package.json
@@ -9,15 +9,23 @@
"author": "Zehao Li ",
"license": "MIT",
"homepage": "https://github.com/HippoAR/react-native-arkit",
- "keywords": ["react-native", "react", "native", "ARKit", "AR"],
+ "keywords": [
+ "react-native",
+ "react",
+ "native",
+ "ARKit",
+ "AR"
+ ],
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"peerDependencies": {
- "react-native": ">=0.46.0",
+ "prop-types": "*",
"react": "*",
- "prop-types": "*"
+ "react-native": ">=0.46.0",
+ "react-native-fix-ios-version": "^1.4.0",
+ "react-native-pod": "^1.1.0"
},
"dependencies": {
"@panter/react-animation-frame": "^0.3.7",
@@ -39,5 +47,8 @@
"prettier": "^1.3.1",
"react": "16.2.0",
"prop-types": "^15.6.0"
+ },
+ "pods": {
+ "PocketSVG": "*"
}
-}
+}
\ No newline at end of file