react-native-macos/Libraries/Animated
Joshua Gross 3ddba567a8 Animated module: don't use random IDs as waiting identifier for queueing
Summary:
In D24521951 (2ff1d4c041) 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
2020-10-26 22:14:25 -07:00
..
__tests__ RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
animations Animated module: don't use random IDs as waiting identifier for queueing 2020-10-26 22:14:25 -07:00
components RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
nodes Animated: Early detection of division by zero in AnimatedDivision 2020-09-26 17:23:15 -07:00
Animated.js Re-enable animations on Android 2020-08-27 15:08:48 -07:00
AnimatedEvent.js RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
AnimatedImplementation.js RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
AnimatedMock.js RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
AnimatedWeb.js RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
Easing.js RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
NativeAnimatedHelper.js Animated module: don't use random IDs as waiting identifier for queueing 2020-10-26 22:14:25 -07:00
NativeAnimatedModule.js Remove @react-native/codegen lint ignores 2020-10-26 16:23:03 -07:00
NativeAnimatedTurboModule.js Remove @react-native/codegen lint ignores 2020-10-26 16:23:03 -07:00
SpringConfig.js RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
bezier.js RN: Remove `react-animated` Legacy Package 2020-08-25 14:15:35 -07:00
createAnimatedComponent.js Animated module: don't use random IDs as waiting identifier for queueing 2020-10-26 22:14:25 -07:00