Open onelittlebird opened 2 years ago
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-keyboard-spacer@0.4.1 for the project I'm working on.
react-native-keyboard-spacer@0.4.1
It is related to version 0.68 of react-native where the ViewPropTypes import was deprecated.
react-native
ViewPropTypes
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-keyboard-spacer/KeyboardSpacer.js b/node_modules/react-native-keyboard-spacer/KeyboardSpacer.js index 14560d8..97933d5 100644 --- a/node_modules/react-native-keyboard-spacer/KeyboardSpacer.js +++ b/node_modules/react-native-keyboard-spacer/KeyboardSpacer.js @@ -8,10 +8,10 @@ import { LayoutAnimation, View, Dimensions, - ViewPropTypes, Platform, StyleSheet } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types' const styles = StyleSheet.create({ container: {
This issue body was partially generated by patch-package.
how should I name the .patch file, buddy?
@lelukas react-native-keyboard-spacer+0.4.1.patch
react-native-keyboard-spacer+0.4.1.patch
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-native-keyboard-spacer@0.4.1
for the project I'm working on.It is related to version 0.68 of
react-native
where theViewPropTypes
import was deprecated.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.