import { StyleSheet } from "react-native"; import React, { useEffect, useState } from "react"; import { Button, ButtonSize, View, Text, ActionSheet, TextField, Dialog, Slider, } from "react-native-ui-lib"; import { AntDesign } from "@expo/vector-icons"; import LinearGradient from "react-native-linear-gradient"; import { PanningDirectionsEnum } from "react-native-ui-lib/src/components/panningViews/panningProvider"; const AddChore = () => { const [isVisible, setIsVisible] = useState(false); const [points, setPoints] = useState(10); useEffect(() => { console.log(points); }, [points]); return ( setIsVisible(false)} containerStyle={{ backgroundColor: "white", width: "100%", alignSelf: "stretch", padding: 0, margin: 0, }} visible={isVisible} > setPoints(value)} minimumValue={0} step={10} maximumValue={100} /> 0 50 100 ); }; export default AddChore; const styles = StyleSheet.create({ divider: { height: 1, backgroundColor: "#e4e4e4", marginVertical: 15 }, gradient: { height: "25%", position: "absolute", bottom: 0, width: "100%", }, buttonContainer: { position: "absolute", bottom: 25, width: "100%", }, button: { backgroundColor: "rgb(253, 23, 117)", paddingVertical: 20, }, });