moschan / react-native-flip-card

The card component which has a motion of flip for React Native(iOS/Android)
MIT License
390 stars 108 forks source link

Need to update the ViewProps #109

Closed velcis closed 1 year ago

velcis commented 1 year ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-flip-card@3.5.6 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-flip-card/lib/FlipCard.js b/node_modules/react-native-flip-card/lib/FlipCard.js
index c496da7..991dc21 100644
--- a/node_modules/react-native-flip-card/lib/FlipCard.js
+++ b/node_modules/react-native-flip-card/lib/FlipCard.js
@@ -8,9 +8,13 @@ import {
   TouchableOpacity,
   Animated,
   Platform,
-  ViewPropTypes
+  
 } from "react-native";

+import { 
+  ViewPropTypes
+} from 'deprecated-react-native-prop-types';
+
 import S from './Style.js'

 export default class FlipCard extends Component {

This issue body was partially generated by patch-package.

juandl commented 1 year ago

Solved!