From b81c1f8ea8c4986692bc6faf9d8c3a7382166645 Mon Sep 17 00:00:00 2001 From: Rodolfo Gomez Sirimarco Date: Thu, 5 Jan 2023 10:19:59 -0600 Subject: [PATCH] Fixed ViewPropTypes are deprecated --- KeyboardSpacer.js | 2 +- package.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/KeyboardSpacer.js b/KeyboardSpacer.js index 14560d8..7ce3aca 100644 --- a/KeyboardSpacer.js +++ b/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: { diff --git a/package.json b/package.json index 19708e5..9700b73 100644 --- a/package.json +++ b/package.json @@ -22,5 +22,8 @@ "bugs": { "url": "https://github.com/Andr3wHur5t/react-native-keyboard-spacer/issues" }, - "homepage": "https://github.com/Andr3wHur5t/react-native-keyboard-spacer#readme" + "homepage": "https://github.com/Andr3wHur5t/react-native-keyboard-spacer#readme", + "dependencies": { + "deprecated-react-native-prop-types": "^4.0.0" + } }