From abf2fdbbacd4d33e052fd06fdbf5139046705a26 Mon Sep 17 00:00:00 2001 From: Tim Van Dijck Date: Wed, 1 Feb 2023 10:19:14 +0100 Subject: [PATCH 1/2] Switch propTypes to use deprecated-react-native-prop-types --- VirtualKeyboard.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VirtualKeyboard.js b/VirtualKeyboard.js index 95f728d..b40b8ff 100644 --- a/VirtualKeyboard.js +++ b/VirtualKeyboard.js @@ -4,9 +4,10 @@ */ import React, { Component } from "react"; -import { View, Image, Text, StyleSheet, Platform, TextPropTypes, Vibration, ViewPropTypes } from "react-native"; +import { View, Image, Text, StyleSheet, Platform, Vibration } from "react-native"; import Ripple from "react-native-material-ripple"; import PropTypes from "prop-types"; +import { TextInputPropTypes, ViewPropTypes } from 'deprecated-react-native-prop-types'; const backAsset = require("./back.png"); @@ -343,7 +344,7 @@ VirtualKeyboard.propTypes = { keyboardDisabledStyle: ViewPropTypes.style, keyStyle: ViewPropTypes.style, keyCustomStyle: ViewPropTypes.style, - keyTextStyle: TextPropTypes.style, + keyTextStyle: TextInputPropTypes, keyImageStyle: ViewPropTypes.style, messageStyle: ViewPropTypes.style, messageTextStyle: ViewPropTypes.style, From 85ca433aec2a1eaba51ff7d442db9914548e4c75 Mon Sep 17 00:00:00 2001 From: Tim Van Dijck Date: Wed, 1 Feb 2023 12:01:23 +0100 Subject: [PATCH 2/2] Add deprecated-react-native-prop-types dependency --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 7e6faba..7b99d48 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ }, "homepage": "https://github.com/lukebrandonfarrell/react-native-screen-keyboard#readme", "dependencies": { + "deprecated-react-native-prop-types": "^2.2.0", "react-native-material-ripple": "git+https://github.com/aspect-apps/react-native-material-ripple.git" }, "keywords": [