Reputation: 2104
Today I review the code in our project. I found some component import from react-native is deprecated. Like Clipboard in react-native version 0.61.5
Is it can make the app is crash?
Of course, we'll replace with @react-native-community/clipboard but I'm confusing
Upvotes: 2
Views: 1031
Reputation: 116
A lot of React native Component have been change and support by @react-native-community ,
Just follow the doc, install the lib :
npm install --save @react-native-community/clipboard
And import it in your component :
import Clipboard from '@react-native-community/clipboard';
delete the import from react-native,
If you are lucky all will work and will be support with last OS,
Upvotes: 1
Reputation: 2104
With react-native version 0.61.5 just warning but the app still not crash
Upvotes: 0