question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CustomPicker does not work in modern React

See original GitHub issue

Seems like there is a problem with CustomPicker higher-order component in React 16+. Can CustomPicker be used in React v16?

Works with React v15.6.1 https://codesandbox.io/s/custom-picker-old-react-forked-o9770

Does not work with React v16.12.0 https://codesandbox.io/s/custom-picker-new-react-ur2z4

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

4reactions
adamborowskicommented, Dec 2, 2020

Fix provided in #791

4reactions
hkurracommented, Aug 28, 2020

Commenting getDerivedStateFromProps in ColorWrap.js has fixed the problem for me image

but I am not fully aware of the root cause, there is one related thread, where it mentioned that there is a dev-dependencies on an older version of react

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native custom picker set style not working - Stack Overflow
I developing a react native project. I use react-native-custom-picker but when I try gives a Custom Picker style it's not working. my code...
Read more >
Picker mode='MULTI' item selection not working with custom ...
When I use custom renderPicker in the Picker component with mode='MULTI' not able to select any item from the Picker.Item and props.isSelected ...
Read more >
React custom datepicker: Step-by-step - LogRocket Blog
In this article, we'll solve the issue by building a custom React datepicker from scratch using native JavaScript Date objects. To follow along ......
Read more >
react-time-picker - npm
React -Time-Picker. A time picker for your React app. Supports virtually any language; No moment.js needed ...
Read more >
React Native Modern Datepicker
A customizable calendar, time & month picker for React Native (including Persian Jalaali calendar & locale)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found