import React from 'react';
import {
StyleSheet,
Dimensions,
View,
Text,
Image,
ScrollView,
TouchableOpacity,
Button,
Alert,
Modal
} from 'react-native';
import styles from './styles';
// import DialogBox from 'react-native-dialogbox';
export default class home extends React.Component {
static navigationOptions = ({ navigation }) => ({
headerLeft:
,
headerTitle:
說明及設定
});
// handleOnPress = () => {
// // alert
// this.dialogbox.confirm({
// title: 你確定嗎?,
// content: [
// 登出後系統會將移動裝置中的資料進行刪除],
// ok: {
// text:'登出'
// },
// cancel: {
// text:'取消'
// }
// });
// }
logout () {
const title = "你確定嗎?"
const message = "登出後系統會將移動裝置中的資料進行刪除"
Alert.alert(
title,
message,
[
{text: '取消', onPress: () => console.log('Cancel Pressed'), style: 'cancel'},
{text: '登出', onPress: () => console.log('OK Pressed')},
],
)
}
render() {
return (
個人檔案
this.props.navigation.navigate('SettingScreen')}>
指標設定
this.props.navigation.navigate('DataSync')}>
數據同步
this.props.navigation.navigate('Notice')}>
通知
this.props.navigation.navigate('AboutHRBScreen')}>
關於HRB
意見回饋
登出
{/* { this.dialogbox = dialogbox }}/> */}
);
}
}