From 9ef748a703a9427e6506438fa599b062902a07cb Mon Sep 17 00:00:00 2001 From: Romain CLEMENT Date: Sat, 8 Apr 2023 02:26:31 +0200 Subject: [PATCH] aaaaaaaaaaaaaaaaaaaaaaaaaaaa --- src/App.tsx | 40 +++++++++++++++++++++++++++--------- src/auth/SignIn.tsx | 23 +++++++++++++++++++++ src/auth/SignUp.tsx | 49 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+), 9 deletions(-) create mode 100644 src/auth/SignIn.tsx create mode 100644 src/auth/SignUp.tsx diff --git a/src/App.tsx b/src/App.tsx index 1c821a7..659be7e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,7 +5,7 @@ * @format */ import * as React from 'react'; -import { NavigationContainer } from '@react-navigation/native'; +import { NavigationContainer, StackActions } from '@react-navigation/native'; import type { PropsWithChildren } from 'react'; import { SafeAreaView, @@ -17,23 +17,45 @@ import { View, } from 'react-native'; -import { createNativeStackNavigator } from '@react-navigation/native-stack'; import ClipViewLocal from './clip/ClipViewLocal'; import ClipViewRemote from './clip/ClipViewRemote'; import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs'; +import { createNativeStackNavigator } from '@react-navigation/native-stack'; +import SignUp from './auth/SignUp'; +import SignIn from './auth/SignIn'; -const Stack = createMaterialBottomTabNavigator(); +const Stack = createNativeStackNavigator(); +const Tab = createMaterialBottomTabNavigator(); + +function Clip() { + return ( + + + {(props) => } + + + {(props) => } + + + ); +} + +function Auth() { + return + + + ; +} function App(): JSX.Element { return ( - - {(props) => } - - - {(props) => } - + {/*-------------------------------------------*/} + + {/*-------------------------------------------*/} + + {/*-------------------------------------------*/} ); diff --git a/src/auth/SignIn.tsx b/src/auth/SignIn.tsx new file mode 100644 index 0000000..90ee3ca --- /dev/null +++ b/src/auth/SignIn.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import { View, Text, Button, TextInput } from 'react-native'; + + +export default class SignIn extends React.Component { + + constructor(props: any) { + super(props); + this.state = { + clips: [] + } + } + + render(): React.ReactNode { + return ( + + Sign In + +