import { Text, TouchableOpacity, View } from "react-native-ui-lib"; import React, { useState } from "react"; import { StyleSheet } from "react-native"; const ViewSwitch = () => { const [view, setView] = useState(false); return ( { setView(true); }} > Calendar { setView(false); }} > Chores ); }; export default ViewSwitch; const styles = StyleSheet.create({ switchBtnActive: { backgroundColor: "#ea156c", borderRadius: 50, width: 110, }, switchBtn: { backgroundColor: "#ebebeb", borderRadius: 50, width: 110, }, switchTxt: { fontSize: 16, fontFamily: "Manrope_600SemiBold", }, });