mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3ddba567a8
Summary: In D24521951 (https://github.com/facebook/react-native/commit/2ff1d4c041ee662871a84363a3f85a8bc9e857ce) I refactored the JS-side queueing for NativeAnimated API calls, and used randomized IDs for queueing. This could cause bugs or unexpected behavior, and potentially crashes, if there's ever a collision in random numbers generated or a collision between random number and one of the deterministic numbers generated in createAnimatedComponent. In this diff I make both of them namespaced with a string, and deterministic, to eliminate any potential collisions. This could also be slightly faster (but not meaningfully) since we're not relying on Math.random. Changelog: [Internal] Reviewed By: yungsters Differential Revision: D24553557 fbshipit-source-id: 8b765e21597ad4f8e641453c1f9f90bdf1ee022f