This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState } from "react"; | |
| import { View, Text, TouchableOpacity, StyleSheet, ScrollView } from "react-native"; | |
| export default function CheckoutScreen() { | |
| const [payment, setPayment] = useState("COD"); | |
| return ( | |
| <ScrollView style={styles.container}> | |
| <Text style={styles.sub}>Review your items and choose a payment method.</Text> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.js | |
| import React, { useState } from "react"; | |
| import LandingPage from "./components/LandingPage"; | |
| import LoginRegister from "./components/LoginRegister"; | |
| function App() { | |
| const [currentView, setCurrentView] = useState("landing"); | |
| return ( |