-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathGVRPanorama.js
30 lines (27 loc) · 868 Bytes
/
GVRPanorama.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
/*
* @Author: tiero
* @Date: 2017-01-05 17:39:05
* @Last Modified by: tiero
* @Last Modified time: 2017-01-05 17:40:19
*/
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { requireNativeComponent, Image } from 'react-native'
class PanoramaView extends Component {
render () {
return <RCTPanoramaView {...this.props} />
}
}
PanoramaView.propTypes = {
image: Image.propTypes.source,
imageUrl: PropTypes.string,
displayMode: PropTypes.string,
enableFullscreenButton: PropTypes.bool,
enableCardboardButton: PropTypes.bool,
enableInfoButton: PropTypes.bool,
enableTouchTracking: PropTypes.bool,
hidesTransitionView: PropTypes.bool
}
// requireNativeComponent automatically resolves this to "PanoramaManager"
var RCTPanoramaView = requireNativeComponent('Panorama', PanoramaView)
export default PanoramaView