diff --git a/packages/rn-tester/js/examples/RefreshControl/RefreshControlExample.js b/packages/rn-tester/js/examples/RefreshControl/RefreshControlExample.js
index 8c8a3f780bf75b..1b5ae994060b78 100644
--- a/packages/rn-tester/js/examples/RefreshControl/RefreshControlExample.js
+++ b/packages/rn-tester/js/examples/RefreshControl/RefreshControlExample.js
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*
* @format
+ * @flow
*/
'use strict';
@@ -15,10 +16,17 @@ const {
StyleSheet,
RefreshControl,
Text,
+ TextInput,
TouchableWithoutFeedback,
View,
+ Platform,
} = require('react-native');
+const {
+ PlainInput,
+ renderSmallSwitchOption,
+} = require('../../components/ListExampleShared');
+
const styles = StyleSheet.create({
row: {
borderColor: 'grey',
@@ -34,6 +42,22 @@ const styles = StyleSheet.create({
scrollview: {
flex: 1,
},
+ container: {
+ backgroundColor: 'rgb(239, 239, 244)',
+ flex: 1,
+ },
+ list: {
+ backgroundColor: 'white',
+ flexGrow: 1,
+ },
+ options: {
+ flexDirection: 'row',
+ flexWrap: 'wrap',
+ alignItems: 'center',
+ },
+ searchRow: {
+ paddingHorizontal: 10,
+ },
});
class Row extends React.Component {
@@ -62,6 +86,12 @@ class RefreshControlExample extends React.Component {
text: 'Initial row ' + i,
clicks: 0,
})),
+ tintColor: '',
+ titleColor: '',
+ title: '',
+ progressBgColor: '',
+ progressViewOffset: null,
+ enabled: true,
};
_onClick = row => {
@@ -71,26 +101,88 @@ class RefreshControlExample extends React.Component {
});
};
+ _onChangeTintColor = tintColor => {
+ this.setState({tintColor});
+ };
+
+ _onChangeTitleColor = titleColor => {
+ this.setState({titleColor});
+ };
+
+ _onChangeProgressBgColor = progressBgColor => {
+ this.setState({progressBgColor});
+ };
+
+ _onChangeProgressViewOffset = progessViewOffset => {
+ this.setState({progessViewOffset});
+ };
+
+ _onChangeTitle = title => {
+ this.setState({title});
+ };
+
render() {
const rows = this.state.rowData.map((row, ii) => {
return
;
});
return (
-
- }>
- {rows}
-
+
+
+ {renderSmallSwitchOption(this, 'isRefreshing')}
+ {Platform.OS === 'android' && (
+
+ {renderSmallSwitchOption(this, 'enabled')}
+
+
+
+ )}
+
+ {Platform.OS !== 'android' && (
+
+
+
+
+
+ )}
+
+
+ }>
+ {rows}
+
+
);
}