File tree Expand file tree Collapse file tree 13 files changed +101
-184
lines changed
Expand file tree Collapse file tree 13 files changed +101
-184
lines changed Original file line number Diff line number Diff line change @@ -11,26 +11,13 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARBox = createArComponent ( NativeModules . ARBoxManager ) ;
15-
16- ARBox . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- frame : PropTypes . string ,
22- } ) ,
14+ const ARBox = createArComponent ( NativeModules . ARBoxManager , {
2315 shape : PropTypes . shape ( {
2416 width : PropTypes . number ,
2517 height : PropTypes . number ,
2618 length : PropTypes . number ,
2719 chamfer : PropTypes . number ,
2820 } ) ,
29- shader : PropTypes . shape ( {
30- color : PropTypes . string ,
31- metalness : PropTypes . number ,
32- roughness : PropTypes . number ,
33- } ) ,
34- } ;
21+ } ) ;
3522
3623module . exports = ARBox ;
Original file line number Diff line number Diff line change @@ -11,24 +11,11 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARCapsule = createArComponent ( NativeModules . ARCapsuleManager ) ;
15-
16- ARCapsule . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- frame : PropTypes . string ,
22- } ) ,
14+ const ARCapsule = createArComponent ( NativeModules . ARCapsuleManager , {
2315 shape : PropTypes . shape ( {
2416 capR : PropTypes . number ,
2517 height : PropTypes . number ,
2618 } ) ,
27- shader : PropTypes . shape ( {
28- color : PropTypes . string ,
29- metalness : PropTypes . number ,
30- roughness : PropTypes . number ,
31- } ) ,
32- } ;
19+ } ) ;
3320
3421module . exports = ARCapsule ;
Original file line number Diff line number Diff line change @@ -11,25 +11,12 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARCone = createArComponent ( NativeModules . ARConeManager ) ;
15-
16- ARCone . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- frame : PropTypes . string ,
22- } ) ,
14+ const ARCone = createArComponent ( NativeModules . ARConeManager , {
2315 shape : PropTypes . shape ( {
2416 topR : PropTypes . number ,
2517 bottomR : PropTypes . number ,
2618 height : PropTypes . number ,
2719 } ) ,
28- shader : PropTypes . shape ( {
29- color : PropTypes . string ,
30- metalness : PropTypes . number ,
31- roughness : PropTypes . number ,
32- } ) ,
33- } ;
20+ } ) ;
3421
3522module . exports = ARCone ;
Original file line number Diff line number Diff line change @@ -11,24 +11,11 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARCylinder = createArComponent ( NativeModules . ARCylinderManager ) ;
15-
16- ARCylinder . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- frame : PropTypes . string ,
22- } ) ,
14+ const ARCylinder = createArComponent ( NativeModules . ARCylinderManager , {
2315 shape : PropTypes . shape ( {
2416 radius : PropTypes . number ,
2517 height : PropTypes . number ,
2618 } ) ,
27- shader : PropTypes . shape ( {
28- color : PropTypes . string ,
29- metalness : PropTypes . number ,
30- roughness : PropTypes . number ,
31- } ) ,
32- } ;
19+ } ) ;
3320
3421module . exports = ARCylinder ;
Original file line number Diff line number Diff line change @@ -11,26 +11,13 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARModel = createArComponent ( NativeModules . ARModelManager ) ;
15-
16- ARModel . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- angle : PropTypes . number ,
22- frame : PropTypes . string ,
23- } ) ,
24- shader : PropTypes . shape ( {
25- metalness : PropTypes . number ,
26- roughness : PropTypes . number ,
27- } ) ,
14+ const ARModel = createArComponent ( NativeModules . ARModelManager , {
2815 model : PropTypes . shape ( {
2916 file : PropTypes . string ,
3017 node : PropTypes . string ,
3118 scale : PropTypes . number ,
3219 alpha : PropTypes . number ,
3320 } ) ,
34- } ;
21+ } ) ;
3522
3623module . exports = ARModel ;
Original file line number Diff line number Diff line change @@ -11,24 +11,11 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARPlane = createArComponent ( NativeModules . ARPlaneManager ) ;
15-
16- ARPlane . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- frame : PropTypes . string ,
22- } ) ,
14+ const ARPlane = createArComponent ( NativeModules . ARPlaneManager , {
2315 shape : PropTypes . shape ( {
2416 width : PropTypes . number ,
2517 height : PropTypes . number ,
2618 } ) ,
27- shader : PropTypes . shape ( {
28- color : PropTypes . string ,
29- metalness : PropTypes . number ,
30- roughness : PropTypes . number ,
31- } ) ,
32- } ;
19+ } ) ;
3320
3421module . exports = ARPlane ;
Original file line number Diff line number Diff line change @@ -11,25 +11,12 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARPyramid = createArComponent ( NativeModules . ARPyramidManager ) ;
15-
16- ARPyramid . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- frame : PropTypes . string ,
22- } ) ,
14+ const ARPyramid = createArComponent ( NativeModules . ARPyramidManager , {
2315 shape : PropTypes . shape ( {
2416 width : PropTypes . number ,
2517 length : PropTypes . number ,
2618 height : PropTypes . number ,
2719 } ) ,
28- shader : PropTypes . shape ( {
29- color : PropTypes . string ,
30- metalness : PropTypes . number ,
31- roughness : PropTypes . number ,
32- } ) ,
33- } ;
20+ } ) ;
3421
3522module . exports = ARPyramid ;
Original file line number Diff line number Diff line change @@ -11,23 +11,10 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARSphere = createArComponent ( NativeModules . ARSphereManager ) ;
15-
16- ARSphere . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- frame : PropTypes . string ,
22- } ) ,
14+ const ARSphere = createArComponent ( NativeModules . ARSphereManager , {
2315 shape : PropTypes . shape ( {
2416 radius : PropTypes . number ,
2517 } ) ,
26- shader : PropTypes . shape ( {
27- color : PropTypes . string ,
28- metalness : PropTypes . number ,
29- roughness : PropTypes . number ,
30- } ) ,
31- } ;
18+ } ) ;
3219
3320module . exports = ARSphere ;
Original file line number Diff line number Diff line change @@ -11,29 +11,15 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARText = createArComponent ( NativeModules . ARTextManager ) ;
15-
16- ARText . propTypes = {
14+ const ARText = createArComponent ( NativeModules . ARTextManager , {
1715 text : PropTypes . string ,
18- pos : PropTypes . shape ( {
19- x : PropTypes . number ,
20- y : PropTypes . number ,
21- z : PropTypes . number ,
22- angle : PropTypes . number ,
23- frame : PropTypes . string ,
24- } ) ,
2516 font : PropTypes . shape ( {
2617 name : PropTypes . string ,
2718 // weight: PropTypes.string,
2819 size : PropTypes . number ,
2920 depth : PropTypes . number ,
3021 chamfer : PropTypes . number ,
3122 } ) ,
32- shader : PropTypes . shape ( {
33- color : PropTypes . string ,
34- metalness : PropTypes . number ,
35- roughness : PropTypes . number ,
36- } ) ,
37- } ;
23+ } ) ;
3824
3925module . exports = ARText ;
Original file line number Diff line number Diff line change @@ -11,24 +11,11 @@ import { NativeModules } from 'react-native';
1111
1212import createArComponent from './lib/createArComponent' ;
1313
14- const ARTorus = createArComponent ( NativeModules . ARTorusManager ) ;
15-
16- ARTorus . propTypes = {
17- pos : PropTypes . shape ( {
18- x : PropTypes . number ,
19- y : PropTypes . number ,
20- z : PropTypes . number ,
21- frame : PropTypes . string ,
22- } ) ,
14+ const ARTorus = createArComponent ( NativeModules . ARTorusManager , {
2315 shape : PropTypes . shape ( {
2416 ringR : PropTypes . number ,
2517 pipeR : PropTypes . number ,
2618 } ) ,
27- shader : PropTypes . shape ( {
28- color : PropTypes . string ,
29- metalness : PropTypes . number ,
30- roughness : PropTypes . number ,
31- } ) ,
32- } ;
19+ } ) ;
3320
3421module . exports = ARTorus ;
You can’t perform that action at this time.
0 commit comments