From 7a0a7798c625b6cb62a8f23c8d641a33c340eefd Mon Sep 17 00:00:00 2001 From: curvedtrunk Date: Mon, 5 Dec 2016 20:37:08 +0530 Subject: [PATCH 1/3] To support 0.38.1, we have changed style Change styles of flex1 from `{flex: 1}` to `{flexGrow: 1}` ``` const styles = StyleSheet.create({ flex1: { flexGrow: 1 } }); ``` --- SmartScrollView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SmartScrollView.js b/SmartScrollView.js index fc42423..95f9819 100644 --- a/SmartScrollView.js +++ b/SmartScrollView.js @@ -250,7 +250,7 @@ class SmartScrollView extends Component { const styles = StyleSheet.create({ flex1: { - flex: 1 + flexGrow: 1 } }); From 53ffecf6efe4cb4eba03d28830f189a77be1cc6a Mon Sep 17 00:00:00 2001 From: curvedtrunk Date: Tue, 24 Jan 2017 21:06:01 +0530 Subject: [PATCH 2/3] keyboardShouldPersistTaps = {true} is deprecated keyboardShouldPersistTaps = {true} is deprecated in RN 0.40 --- SmartScrollView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SmartScrollView.js b/SmartScrollView.js index 95f9819..cf76390 100644 --- a/SmartScrollView.js +++ b/SmartScrollView.js @@ -237,7 +237,7 @@ class SmartScrollView extends Component { contentInset = { contentInset } zoomScale = { zoomScale } showsVerticalScrollIndicator = { showsVerticalScrollIndicator } - keyboardShouldPersistTaps = { true } + keyboardShouldPersistTaps = "always" bounces = { false } > {content} From d048d4548b2387f1a8504f7e8e395df10ab213fa Mon Sep 17 00:00:00 2001 From: curvedtrunk Date: Sat, 27 Oct 2018 23:01:35 +0530 Subject: [PATCH 3/3] Change prop-types from react to `prop-types` lib --- SmartScrollView.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SmartScrollView.js b/SmartScrollView.js index cf76390..ec1d9de 100644 --- a/SmartScrollView.js +++ b/SmartScrollView.js @@ -1,8 +1,9 @@ import React, { Component, - PropTypes, } from 'react'; +import PropTypes from 'prop-types'; + import ReactNative, { View, StyleSheet, @@ -256,8 +257,8 @@ const styles = StyleSheet.create({ SmartScrollView.propTypes = { forceFocusField: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), - scrollContainerStyle: View.propTypes.style, - contentContainerStyle: View.propTypes.style, + scrollContainerStyle: PropTypes.any, + contentContainerStyle: PropTypes.any, zoomScale: PropTypes.number, showsVerticalScrollIndicator: PropTypes.bool, contentInset: PropTypes.object,