A framework for building native applications using React
Fix sorting string literals in React Native API snapshot (#51916)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51916
String literals were not sorted in React Native API Snapshot. This diff fixes the issue by retrieving the value from the string literal.
Before:
```ts
type A = {
a: string;
b: string;
\"ba\": string;
\"ab\": string;
aFn: () => void;
bFn: () => void;
aMethod(): void;
bMethod(): void;
};
```
After:
```ts
type A = {
a: string;
\"ab\": string;
b: string;
\"ba\": string;
aFn: () => void;
bFn: () => void;
aMethod(): void;
bMethod(): void;
};
```
Changelog:
[Internal]
Reviewed By: robhogan
Differential Revision: D76329242
fbshipit-source-id: 9645b82cbd22e2d3acef1376a9ffefa3646457d9 D
Dawid Małecki committed
beb3d49a1b1ae46a56eef9482583f2899e643c22
Parent: ff3cfff
Committed by Facebook GitHub Bot <[email protected]>
on 6/10/2025, 12:46:40 PM