componentWillReceiveProps is deprecated and will be removed in the next major version of RN
See original GitHub issueFeature Request
Use static getDerivedStateFromProps
instead of componentWillReceiveProps
.
Why it is needed
componentWillReceiveProps
is deprecated and will be removed in the next major version of React Native.
Possible implementation
Replace the function.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:24
- Comments:10
Top Results From Across the Web
remote debugging - React-native lifecycle methods warning ...
Warning : componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.
Read more >componentWillMount is deprecated and will be removed ...
componentWillMount is deprecated and will be removed in the next major version 0.54.0 in React Native · componentWillMount is deprecated and will be...
Read more >componentwillmount has been renamed - You.com | The search ...
componentWillMount is deprecated and will be removed in the next major version 0.54.0 in React Native. Asked Mar 10, 2018 • 38 votes...
Read more >componentWillReceiveProps is deprecated and will be removed in ...
componentWillReceiveProps is deprecated and will be removed in the next major version of RN.
Read more >مدیاویکی:Gadget-experimental-react.js - ویکیپدیا، دانشنامهٔ آزاد
Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?'); }...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@andraderaul #141 is not released. Sharing my current solution till it is released. 1.
patches
and inside it create a file calledreact-native-text-input-mask+2.0.0.patch
yarn
I updated the merge conflict on #142, for the temporary fix use my branch as package source on package.json:
"react-native-text-input-mask": "https://github.com/iagormoraes/react-native-text-input-mask"
EDIT: it seems #141 was merged with the fixes.