Skip to content

Commit

Permalink
Enabling flashScrollIndicators example for all platforms
Browse files Browse the repository at this point in the history
Summary: ... because it was recently implemented for Android.

Reviewed By: mmmulani

Differential Revision: D5916305

fbshipit-source-id: b8af0f8712e36aee5c44f7ede41da25fc944134f
  • Loading branch information
shergin authored and facebook-github-bot committed Sep 27, 2017
1 parent 01a6178 commit e9a090f
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions RNTester/js/ScrollViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ exports.examples = [
onPress={() => { _scrollView.scrollToEnd({animated: true}); }}>
<Text>Scroll to bottom</Text>
</TouchableOpacity>
{ Platform.OS === 'ios' ?
<TouchableOpacity
style={styles.button}
onPress={() => { _scrollView.flashScrollIndicators(); }}>
<Text>Flash scroll indicators</Text>
</TouchableOpacity>
: null }
<TouchableOpacity
style={styles.button}
onPress={() => { _scrollView.flashScrollIndicators(); }}>
<Text>Flash scroll indicators</Text>
</TouchableOpacity>
</View>
);
}
Expand Down Expand Up @@ -95,13 +93,11 @@ exports.examples = [
onPress={() => { _scrollView.scrollToEnd({animated: true}); }}>
<Text>Scroll to end</Text>
</TouchableOpacity>
{ Platform.OS === 'ios' ?
<TouchableOpacity
style={styles.button}
onPress={() => { _scrollView.flashScrollIndicators(); }}>
<Text>Flash scroll indicators</Text>
</TouchableOpacity>
: null }
<TouchableOpacity
style={styles.button}
onPress={() => { _scrollView.flashScrollIndicators(); }}>
<Text>Flash scroll indicators</Text>
</TouchableOpacity>
</View>
);
}
Expand Down

0 comments on commit e9a090f

Please sign in to comment.