What happend when import deprecated lib in react native?

Viewed 404

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? enter image description here

Of course, we'll replace with @react-native-community/clipboard but I'm confusing

2 Answers

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,

With react-native version 0.61.5 just warning but the app still not crash

Related