Commit 2d1412aa authored by Madusanka-w's avatar Madusanka-w

weather data input page

parent e2287506
......@@ -7,18 +7,7 @@ const WeatherData = () => {
const [temperature, setTemperature] = useState('');
const navigation = useNavigation();
const handleSaveData = () => {
const userInputs = {
temperature : parseFloat(temperature),
humidity : parseFloat(humidity)
}
console.log("user",userInputs);
navigation.navigate("Crops",{userInputs})
};
return (
<ImageBackground
source={require('../../assets/weatherinput.jpeg')} // Replace with the path to your background image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment