Skip to content

Commit

Permalink
Fix crash in ScrollView.scrollEventThrottle
Browse files Browse the repository at this point in the history
Summary: Fix crash when casting `scrollEventThrottle`. `scrollEventThrottle` is passed as double from javascript.

Reviewed By: shergin

Differential Revision: D17626401

fbshipit-source-id: 0707a5a440fe7887e316054b455ba972a9291a18
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Sep 30, 2019
1 parent 07fe994 commit 0d6c427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactCommon/fabric/components/scrollview/ScrollViewProps.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ScrollViewProps final : public ViewProps {
const bool scrollsToTop{true};
const bool showsHorizontalScrollIndicator{true};
const bool showsVerticalScrollIndicator{true};
const int scrollEventThrottle{};
const Float scrollEventThrottle{};
const Float zoomScale{1.0};
const EdgeInsets contentInset{};
const EdgeInsets scrollIndicatorInsets{};
Expand Down

0 comments on commit 0d6c427

Please sign in to comment.