forked from rastapasta/react-native-gl-model-view
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (25 loc) · 764 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React, { Component, PropTypes } from 'react';
import { requireNativeComponent, View } from 'react-native';
class GLModelView extends Component {
render() {
return <RNGLModelView {...this.props} />;
}
}
GLModelView.propTypes = {
...View.propTypes,
animate: PropTypes.bool,
model: PropTypes.string.isRequired,
texture: PropTypes.string,
rotateX: PropTypes.number,
rotateY: PropTypes.number,
rotateZ: PropTypes.number,
scale: PropTypes.number,
scaleX: PropTypes.number,
scaleY: PropTypes.number,
scaleZ: PropTypes.number,
translateX: PropTypes.number,
translateY: PropTypes.number,
translateZ: PropTypes.number
};
var RNGLModelView = requireNativeComponent('RNGLModelView', GLModelView);
export default GLModelView;