Closed choudhary1200 closed 3 years ago
@choudhary1200 The code you shared is working. Do you happen to have the error log?
edit: why is the Month Year Picker Example
not either commented nor wrapped by a <Text>
? 🤔
@choudhary1200 The code you shared is working. Do you happen to have the error log?
edit: why is the
Month Year Picker Example
not either commented nor wrapped by a<Text>
?
I am getting below native error Didn't find class "java.time.instant" See below attached screenshot for more details.
Device Info: Android 7 minSdkVersion 19
@choudhary1200 your Android version is lower than 8.0. That's why the class is missing.
Let me see if I can introduce a lower version workaround
:tada: This issue has been resolved in version 1.3.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
App is crashing when opening picker Using: "react-native": "0.62.2" "react-native-month-year-picker": "^1.3.2",
Code: import React, { useState, useCallback } from 'react'; import { View, SafeAreaView, Text,TouchableOpacity } from 'react-native'; import MonthPicker from 'react-native-month-year-picker';
const App = () => { const [date, setDate] = useState(new Date()); const [show, setShow] = useState(false);
const showPicker = useCallback((value) => setShow(value), []);
const onValueChange = useCallback( (event, newDate) => { const selectedDate = newDate || date;
);
return (
); };
export default App;
Tried following steps but not working react-native run-android npm start --reset-cache