From d3e8c5e64fe4fbc056f08e981f39b343c59aef46 Mon Sep 17 00:00:00 2001 From: thesved <2893181+thesved@users.noreply.github.com> Date: Sun, 4 Oct 2020 21:50:46 +0200 Subject: [PATCH] Update to make it work with react-native-web v12.0 --- KeyboardSpacer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KeyboardSpacer.js b/KeyboardSpacer.js index 14560d8..3e0febc 100644 --- a/KeyboardSpacer.js +++ b/KeyboardSpacer.js @@ -39,7 +39,7 @@ export default class KeyboardSpacer extends Component { static propTypes = { topSpacing: PropTypes.number, onToggle: PropTypes.func, - style: ViewPropTypes.style, + style: ViewPropTypes && ViewPropTypes.style || PropTypes.object, }; static defaultProps = {