1 | import React, { Component, PropTypes } from 'react';
|
2 | import {
|
3 | View,
|
4 | } from 'react-native';
|
5 | import ScenneContainer from './ScenneContainer';
|
6 |
|
7 | class Scene extends Component {
|
8 | static propTypes = {
|
9 | shouldUpdated: PropTypes.bool,
|
10 | }
|
11 | static defaultProps = {
|
12 | shouldUpdated: null,
|
13 | }
|
14 | render() {
|
15 | const { shouldUpdated, ...props } = this.props;
|
16 | return (
|
17 | <View {...props}>
|
18 | {props.children}
|
19 | </View>
|
20 | );
|
21 | }
|
22 | }
|
23 | export default Scene;
|