import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
TouchableOpacity,
Image,
AlertIOS
} from 'react-native';
import _ from 'lodash';
import Immutable from 'seamless-immutable';
//import CameraScreen from './CameraScreen';
import AlbumsScreen from './AlbumsScreen';
class example extends Component {
constructor(props) {
super(props);
this.state = {
example: undefined
};
}
render() {
if (this.state.example) {
const Example = this.state.example;
return ;
}
return (
this.setState({example: CameraScreen})}>
Camera Screen
this.setState({example: AlbumsScreen})}>
Albums Screen
Check Autotization Status
);
}
async onCheckAuthoPressed() {
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
buttonText: {
color: 'blue',
marginBottom: 20,
fontSize: 20
}
});
AppRegistry.registerComponent('example', () => example);