From b8a4b6e578c1b4277ee2a62ae788af4fd35ab5c6 Mon Sep 17 00:00:00 2001 From: Prateek Surana Date: Mon, 1 Jan 2024 15:01:24 +0530 Subject: [PATCH] Apply formatting to all files in TestingApp --- TestingApp/App.js | 487 +++++++++--------- .../async-storage.js | 4 +- TestingApp/__tests__/App-test.js | 12 +- TestingApp/babel.config.js | 2 +- TestingApp/index.js | 6 +- TestingApp/metro.config.js | 16 +- package.json | 4 +- 7 files changed, 270 insertions(+), 261 deletions(-) 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! - - -