Hi,
App is crashed when I am using npm i [email protected] @react-native-community/[email protected] for class component in iOS 14. Xcode showed error is TypeError: (0,c.useState) is not a function. (In '(0,c.useState)(void 0)', '(0,c.useState)' is undefined).
"react": "16.6.3",
"react-native": "^0.59.0",
Xcode : 12.0.1
iOS : 14
Please follow the issue template. React hooks support landed in 16.8 (and is being used in the picker). That's probably why it doesn't work on your version of react.
Please follow the issue template. React hooks support landed in
16.8(and is being used in the picker). That's probably why it doesn't work on your version of react.
Is there is an alternative solution for resolve this issue?
I suppose you can use an older version of react-native-modal-datetime-picker that supports your version of react and react-native
Can you please reply me which version of react-native-modal-datetime-picker and react-native-community/datetimepicker without using hooks?
Now I am using the react-native-modal-datepicker 6.0.0. This 6.0.0 have an
issue in iOS 14.
Please find the attachment.
"react": "16.6.3",
"react-native": "^0.59.0",
Xcode : 12.0.1
iOS : 14
On Thu, Oct 22, 2020 at 7:59 PM Matteo Mazzarolo notifications@github.com
wrote:
I suppose you can use an older version of
react-native-modal-datetime-picker that supports your version of react
and react-native—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mmazzarolo/react-native-modal-datetime-picker/issues/487#issuecomment-714534073,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKMLYJ3LKVBFDKFJF4RH2W3SMA6T5ANCNFSM4S3GNNFQ
.
--
K Gopi Krishna | React-Native Developer / Khameleon
M: (+91) 9030363095 <(813)6004060>
W: https://www.amzur.com
https://www.facebook.com/amzurtech http://www.twitter.com/amzurtech
https://www.linkedin.com/company/amzur-technologies-inc/
https://www.instagram.com/amzurtech/?igshid=mgjads2zvq6l
https://www.youtube.com/channel/UCs6QJtQfeH-7vbr5CkfFIyg
An ISO 9001:2015 Certified Company
An ISO 27001:2013 Certified Company
I am also getting the same error.
Is there any older version of this library in which this iOS 14 issue is resolved and supports react-native version 0.59.0.
Thank you.