Adding $FlowFixMe to invalid prop accesses

Reviewed By: yungsters

Differential Revision: D7977387

fbshipit-source-id: 442e7445be62f78bdf166a2b97ef031e39877355
This commit is contained in:
Eli White
2018-05-12 10:25:08 -07:00
committed by Facebook Github Bot
parent 7ba7acdee7
commit f19ee28e7d
12 changed files with 55 additions and 0 deletions

View File

@@ -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();
}}
/>