Marc Rousavy
987dd6a358
fix: Support 120 FPS in RCTFPSGraph ( #35543 )
...
Summary:
Currently the `RCTFPSGraph` component is hardcoded/capped at a Frame Rate of 60.
Since there are phones that support more than 60 FPS (newer iPhones can do 120 FPS), and there might be other use-cases for the RCTFPSGraph (I use it in VisionCamera to show Camera FPS), this PR changes the scale to also support higher FPS by adjusting it on the fly (when a new maximum arrives)
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[iOS] [Fixed] - Support 120 FPS or more in `RCTFPSGraph`
Pull Request resolved: https://github.com/facebook/react-native/pull/35543
Test Plan:
Before:

After:

Reviewed By: rshest
Differential Revision: D43573750
Pulled By: sammy-SC
fbshipit-source-id: 7d64fcee35c0c29dfb618f1f02945584d1cab1e0
2023-02-28 01:27:38 -08:00
Richard Howell
8c4e81a0c8
add casts for implicit int to float
...
Summary: Apply //fbobjc/Tools/cAST:implicit_conversion to existing warnings
Reviewed By: d16r
Differential Revision: D35817706
fbshipit-source-id: 3c40c1622e556d1556c138bab5b4c120c443f64e
2022-04-21 12:18:53 -07:00
Richard Howell
f22d4348dc
add casts for implicit int to float
...
Summary: Apply //fbobjc/Tools/cAST:implicit_conversion to existing warnings
Reviewed By: matrush
Differential Revision: D35787050
fbshipit-source-id: 45f06227e44203cbedf1d10978e1992399a0d06b
2022-04-20 16:29:02 -07:00
Richard Howell
7d4f6840f6
add casts for implicit int to float
...
Summary: Apply //fbobjc/Tools/cAST:implicit_conversion to existing warnings
Reviewed By: adamjernst
Differential Revision: D35692786
fbshipit-source-id: 13fb4f8a6b6e701c324b00c682943a4b3d80de72
2022-04-18 11:51:50 -07: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
Richard Howell
e60f0f5034
cast implicit int to CGFloat conversions [3/3]
...
Summary: Insert casts for implicit int -> CGFloat conversions. This warning category is generally benign and explicitly casting will preserve existing behavior.
Reviewed By: NSProgrammer
Differential Revision: D33303887
fbshipit-source-id: b21adbcf754e707adfe3f8eaa0fe9c3a65380cc5
2021-12-24 09:19:42 -08:00
Valentin Shergin
d0871d0a9a
Clang format for all React Native files
...
Summary:
Buckle up, this enables clang-format prettifier for all files in React Native opensource repo.
Changelog: [Internal] Clang-format codemod.
Reviewed By: mdvacca
Differential Revision: D20331210
fbshipit-source-id: 8da0f94700be0c35bfd399e0c48f1706de04f5b1
2020-03-08 23:01:17 -07:00
Ramanpreet Nara
38678f75b4
Fix podspecs
...
Summary:
I kept on running `USE_FRAMEWORKS=1 update-pods && open RNTesterPods.xcworkspace` and adding missing dependencies until `RNTesterPods` started compiling without failure.
**Note:** I made sure to only commit the podfile changes from `update-pods`, **without** `USE_FRAMEWORKS=1`.
Changelog:
[iOS][Fixed] - Fix all RN Podspecs
Reviewed By: fkgozali
Differential Revision: D18284535
fbshipit-source-id: 44d288ae0e52dd2cbbe26bebe7df73ce05644b5d
2019-11-01 19:34:46 -07:00
Ramanpreet Nara
809d01095e
Make RCTPerfMonitor TurboModule-compatible
...
Summary:
See title.
Changelog:
[iOS][Added] - Make RCTPerfMonitor TurboModule-compatible
Reviewed By: shergin
Differential Revision: D18145947
fbshipit-source-id: df2f0d60a4924f094cc4ec311b6bf570fb9fb7e1
2019-11-01 12:06:21 -07:00