diff --git a/src/Home.js b/src/Home.js new file mode 100644 index 0000000..185ef81 --- /dev/null +++ b/src/Home.js @@ -0,0 +1,57 @@ +import React from 'react'; +import {Alert, Button, Image, ScrollView, Text} from "react-native"; +import SharedPreferences from 'react-native-shared-preferences'; +import Icon from 'react-native-vector-icons/Ionicons' + +export default class Messages extends React.Component { + static navigationOptions = ({navigation}) => { + return { + headerTitle: ( + + + Gotify + + ), + headerRight: ( + { + Alert.alert( + 'Logout Confirmation', + 'Do you really want to log out?', + [ + { + text: 'Cancel', onPress: () => { + }, style: 'cancel' + }, + { + text: 'OK', onPress: () => { + SharedPreferences.removeItem("@global:token"); + navigation.navigate('AuthLoading'); + } + }, + ], + {cancelable: false} + ) + }} + color="#000" + size={30} + backgroundColor="#fff"/> + ), + }; + }; + + render() { + return ( + + See notifications for status +