mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
Adding $FlowFixMe to invalid prop accesses
Reviewed By: yungsters Differential Revision: D7977387 fbshipit-source-id: 442e7445be62f78bdf166a2b97ef031e39877355
This commit is contained in:
committed by
Facebook Github Bot
parent
7ba7acdee7
commit
f19ee28e7d
@@ -39,6 +39,7 @@ exports.examples = [
|
||||
<View>
|
||||
<ScrollView
|
||||
ref={scrollView => {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
_scrollView = scrollView;
|
||||
}}
|
||||
automaticallyAdjustContentInsets={false}
|
||||
@@ -96,18 +97,21 @@ exports.examples = [
|
||||
<Button
|
||||
label="Scroll to start"
|
||||
onPress={() => {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
_scrollView.scrollTo({x: 0});
|
||||
}}
|
||||
/>
|
||||
<Button
|
||||
label="Scroll to end"
|
||||
onPress={() => {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
_scrollView.scrollToEnd({animated: true});
|
||||
}}
|
||||
/>
|
||||
<Button
|
||||
label="Flash scroll indicators"
|
||||
onPress={() => {
|
||||
// $FlowFixMe Invalid prop usage
|
||||
_scrollView.flashScrollIndicators();
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user