From f12f0e679dd6f1cdbd3c993d940a736ea1e952a3 Mon Sep 17 00:00:00 2001 From: Luna Wei Date: Mon, 14 Jun 2021 21:52:52 -0700 Subject: [PATCH] Remove Picker from ScrollView examples Summary: Changelog: [Internal] - Remove Picker from ScrollView examples Reviewed By: kacieb Differential Revision: D29082450 fbshipit-source-id: 6c186e565b70eac9023b87f52f6174f9a0e993f2 --- .../examples/ScrollView/ScrollViewExample.js | 110 +++++++++--------- 1 file changed, 52 insertions(+), 58 deletions(-) diff --git a/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js b/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js index e031dbc0fca..11c620ff8e9 100644 --- a/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js +++ b/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js @@ -13,7 +13,6 @@ const React = require('react'); const { Platform, ScrollView, - Picker, StyleSheet, Text, TouchableOpacity, @@ -549,6 +548,7 @@ const SnapToOptions = () => { const [snapToInterval, setSnapToInterval] = useState(0); const [snapToOffsets, setSnapToOffsets] = useState([]); const [snapToStart, setSnapToStart] = useState(true); + return ( { {Platform.OS === 'ios' ? ( <> - Snap to Alignment Mode - { - if (value === 'start' || value === 'center' || value === 'end') { - setSnapToAlignment(value); - } - }} - itemStyle={styles.pickerItem}> - {snapToAlignmentModes.map(label => { - return ; - })} - + Select Snap to Alignment Mode + + {snapToAlignmentModes.map(label => ( +