diff --git a/TestingApp/App.js b/TestingApp/App.js index d49805f..b3c10ef 100644 --- a/TestingApp/App.js +++ b/TestingApp/App.js @@ -6,244 +6,253 @@ * @flow strict-local */ - import React from 'react'; - import { - View, - Text, - Button - } from 'react-native'; - - import SuperTokens from "supertokens-react-native" - import axios from "axios"; +import React from "react"; +import { View, Text, Button } from "react-native"; + +import SuperTokens from "supertokens-react-native"; +import axios from "axios"; SuperTokens.addAxiosInterceptors(axios); -const BASE_URL = "http://192.168.1.100:8080/" - - class App extends React.Component { - - constructor(props) { - super(props); - this.state = { - loggedIn: undefined, - sessionVerified: undefined - }; - } - - render() { - if (this.state.loggedIn === undefined) { - return ( - - ); - } else if (this.state.loggedIn) { - if (this.state.sessionVerified === undefined) { - return ( - - ); - } else if (this.state.sessionVerified) { - return ( - - - Logged in, session verification passed! - - -