Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invariant in scrollResponderZoomTo
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 #11186 Differential Revision: D4246674 fbshipit-source-id: 47002a85d8252e5abbd1cd9ecef3d7676fa8615a
- Loading branch information
Showing with 6 additions and 9 deletions.