xplat RN: fix flow for useSyncExternalStore

Summary:
They flow type for useSyncExternalStore is incorrect and in consistent with www.

v1.0.0 of use-sync-external-store has the third parameter:
https://github.com/facebook/react/blob/4997515b96eede5ab1ca622e0439a0707f8d4afd/packages/use-sync-external-store/src/useSyncExternalStoreShimClient.js#L37
This revision is 1.0.0:
https://github.com/facebook/react/blob/4997515b96eede5ab1ca622e0439a0707f8d4afd/packages/use-sync-external-store/package.json

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D44163470

fbshipit-source-id: 6582b20ba09f5840b444a1ca3d8fc12d6c783a00
This commit is contained in:
Ian Jones
2023-03-17 06:20:15 -07:00
committed by Facebook GitHub Bot
parent 714b502b0c
commit 3b8459d66b
+1
View File
@@ -15,5 +15,6 @@ declare module 'use-sync-external-store/shim' {
declare export function useSyncExternalStore<Value>(
subscribe: (callback: Function) => () => void,
getCurrentValue: () => Value,
getServerSnapshot?: () => Value,
): Value;
}