Skip to content

Commit b8b5ca7

Browse files
committed
Merge branch 'ar-group' into onFrame-callback
2 parents 9d7191f + 934edf8 commit b8b5ca7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

components/ARGroup.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { View } from 'react-native';
2+
import React, { Component } from 'react';
3+
4+
const ARGroup = class extends Component {
5+
render() {
6+
return <View>{this.props.children}</View>;
7+
}
8+
};
9+
10+
module.exports = ARGroup;

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import ARCapsule from './components/ARCapsule';
1919
import ARPlane from './components/ARPlane';
2020
import ARText from './components/ARText';
2121
import ARModel from './components/ARModel';
22+
import ARGroup from './components/ARGroup';
2223

2324
ARKit.Box = ARBox;
2425
ARKit.Sphere = ARSphere;
@@ -31,6 +32,7 @@ ARKit.Capsule = ARCapsule;
3132
ARKit.Plane = ARPlane;
3233
ARKit.Text = ARText;
3334
ARKit.Model = ARModel;
35+
ARKit.Group = ARGroup;
3436

3537
module.exports = {
3638
ARKit,
@@ -46,4 +48,5 @@ module.exports = {
4648
ARPlane,
4749
ARText,
4850
ARModel,
51+
ARGroup,
4952
};

0 commit comments

Comments
 (0)