Skip to content

ViewPropTypes deprecation #99

@jaymjax1

Description

@jaymjax1

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-search-box@0.0.20 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-search-box/index.js b/node_modules/react-native-search-box/index.js
index 5e387c8..6582e67 100644
--- a/node_modules/react-native-search-box/index.js
+++ b/node_modules/react-native-search-box/index.js
@@ -10,9 +10,10 @@ import {
   Keyboard,
   Image,
   View,
-  ViewPropTypes
 } from 'react-native';
 
+import { ViewPropTypes } from 'deprecated-react-native-prop-types';
+
 const AnimatedTextInput = Animated.createAnimatedComponent(TextInput);
 
 class Search extends PureComponent {

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions