zhongwuzw
297ae37367
Fix rn-tester Animated example label color in dark mode ( #44127 )
...
Summary:
Fix rn-tester Animated example label color in dark mode
## Changelog:
[INTERNAL] [FIXED] - Fix rn-tester Animated example label color in dark mode
Pull Request resolved: https://github.com/facebook/react-native/pull/44127
Test Plan:
Animated examples render incorrectly in dark mode. So let's fix them. :)

Reviewed By: fabriziocucci
Differential Revision: D56234954
Pulled By: javache
fbshipit-source-id: 5fd8604077ced9aa3acd23a7dc9ebd8476a7330b
2024-04-17 08:21:38 -07:00
George Zahariev
608029aed2
Convert unannotated variable declaration with cast init to annotated variable declaration in xplat/js ( #42880 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/42880
Convert `const x = (a: T)` into `const x: T = a`. These are equivalent in Flow, and helps reduce the amount of colon-casts.
```
js1 flow-runner codemod flow/castToAnnotatedVariable --target colon xplat/js
```
Changelog: [Internal]
drop-conflicts
Reviewed By: SamChou19815
Differential Revision: D53392999
fbshipit-source-id: 3b4602618d6990e8642b423edaeb4e89b01a199a
2024-02-05 23:07:17 -08:00
Moti Zilberman
d6e0bc714a
Enable lint/sort-imports everywhere ( #41334 )
...
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41334
TSIA.
Changelog: [Internal]
Reviewed By: robhogan
Differential Revision: D51025812
fbshipit-source-id: e10d437be775a6b80946483aa96460f34927f870
2023-11-06 12:59:38 -08:00
Marshall Roch
851e87a1a6
make Easing an object, not a class
...
Summary:
`Easing` only has static properties and is never constructed or subclassed, so there doesn't seem to be any reason for it to be a class instead of an object.
as a class, Flow errors about `method-unbinding` on every single use of it.
Changelog: [Internal]
Reviewed By: motiz88
Differential Revision: D33774944
fbshipit-source-id: c0bd2e3d7a78e538f95b88b2b1b12d301c8f590c
2022-01-25 15:23:46 -08:00
Andres Suarez
8bd3edec88
Update copyright headers from Facebook to Meta
...
Reviewed By: aaronabramov
Differential Revision: D33367752
fbshipit-source-id: 4ce94d184485e5ee0a62cf67ad2d3ba16e285c8f
2021-12-30 15:11:21 -08:00
Tim Yung
70dcba9994
JS: Remove Unused Flow Suppressions
...
Summary:
Cleans up all unused Flow suppressions.
Changelog:
[Internal]
Reviewed By: kacieb
Differential Revision: D31754978
fbshipit-source-id: 951e28a245782b9bc9e93a6417d88b19ba0c8f1c
2021-10-21 14:26:00 -07:00
Charles Dudley
5b77dfd69f
Add "Use Native Driver" control to RNTester Animated Composing example
...
Summary: Changelog: [Internal]
Reviewed By: yungsters
Differential Revision: D29832704
fbshipit-source-id: dfd37d08d0f25fe86716a21682648894e8adad8b
2021-07-27 09:13:53 -07:00
Charles Dudley
b440ab9784
Add RNTester cases for Animated Easing API
...
Summary:
- Update `RNTesterNavBar` to be positioned relatively to allow for scroll views to not be clipped
- Add EasingExample with example animations taken from https://reactnative.dev/docs/easing
Changelog: [Internal]
Reviewed By: lunaleaps
Differential Revision: D29744160
fbshipit-source-id: d0e2112769d74dd34e11477f1d3b1f8f0ffebc03
2021-07-26 16:43:19 -07:00