Skip to content

Commit 94555c0

Browse files
authored
fix(bug): switch propTypes to use deprecated-react-native-prop-types (#23)
fix(bug): Switch propTypes to use deprecated-react-native-prop-types fix(bug): Add deprecated-react-native-prop-types dependency Closes #20
1 parent bda706d commit 94555c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

VirtualKeyboard.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
*/
55

66
import React, { Component } from "react";
7-
import { View, Image, Text, StyleSheet, Platform, TextPropTypes, Vibration, ViewPropTypes } from "react-native";
7+
import { View, Image, Text, StyleSheet, Platform, Vibration } from "react-native";
88
import Ripple from "react-native-material-ripple";
99
import PropTypes from "prop-types";
10+
import { TextInputPropTypes, ViewPropTypes } from 'deprecated-react-native-prop-types';
1011

1112
const backAsset = require("./back.png");
1213

@@ -343,7 +344,7 @@ VirtualKeyboard.propTypes = {
343344
keyboardDisabledStyle: ViewPropTypes.style,
344345
keyStyle: ViewPropTypes.style,
345346
keyCustomStyle: ViewPropTypes.style,
346-
keyTextStyle: TextPropTypes.style,
347+
keyTextStyle: TextInputPropTypes,
347348
keyImageStyle: ViewPropTypes.style,
348349
messageStyle: ViewPropTypes.style,
349350
messageTextStyle: ViewPropTypes.style,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
},
2222
"homepage": "https://github.com/lukebrandonfarrell/react-native-screen-keyboard#readme",
2323
"dependencies": {
24+
"deprecated-react-native-prop-types": "^2.2.0",
2425
"react-native-material-ripple": "git+https://github.com/aspect-apps/react-native-material-ripple.git"
2526
},
2627
"keywords": [

0 commit comments

Comments
 (0)