mirror of
https://github.com/status-im/react-native.git
synced 2025-01-19 14:02:10 +00:00
20e99f5b93
Summary: This fixes a cryptic bug to appear when you try to use scrollResponderZoomTo in Android. before this PR it would break with a `Error: TaskQueue: Error with task : invariant requires an error message argument` because the invariant() was not properly used.. Also, instead of detecting the platform, I think it's better practice to duck type. Closes https://github.com/facebook/react-native/pull/11186 Differential Revision: D4246674 fbshipit-source-id: 47002a85d8252e5abbd1cd9ecef3d7676fa8615a