forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tested on Android (office device) and iOS (my iPhone). See the previous commit about some preparation that was needed; we upgraded the AGP.
- Loading branch information
1 parent
e55dba1
commit 1222bc9
Showing
11 changed files
with
1,716 additions
and
1,425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
types/@react-native-clipboard/clipboard/dist/NativeClipboardModule.js.flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* @flow | ||
* @generated by TsFlower | ||
*/ | ||
import type { EmitterSubscription as $tsflower_subst$RN$EmitterSubscription } from 'tsflower/subst/react-native'; | ||
import { type TurboModule } from 'react-native/Libraries/TurboModule/RCTExport'; | ||
import { type Int32 } from 'react-native/Libraries/Types/CodegenTypes'; | ||
|
||
export interface Spec extends TurboModule { | ||
getString(): Promise<string>; | ||
getStrings(): Promise<string[]>; | ||
getImagePNG(): Promise<string>; | ||
getImageJPG(): Promise<string>; | ||
setImage(content: string): Promise<void>; | ||
getImage(): Promise<string>; | ||
setString(content: string): void; | ||
setStrings(content: string[]): void; | ||
hasString(): Promise<boolean>; | ||
hasImage(): Promise<boolean>; | ||
hasURL(): Promise<boolean>; | ||
hasNumber(): Promise<boolean>; | ||
hasWebURL(): Promise<boolean>; | ||
setListener(): void; | ||
removeListener(): void; | ||
addListener(eventName: string): void; | ||
removeListeners(count: Int32): void; | ||
} | ||
|
||
declare var ClipboardTurboModule: Spec; | ||
export default ClipboardTurboModule; | ||
declare var addListener: (callback: () => void) => $tsflower_subst$RN$EmitterSubscription; | ||
declare var removeAllListeners: () => void; | ||
export { addListener, removeAllListeners }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
types/patches/0050-tsflower-Fix-a-typeof-to-type-in-Int32-import.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Chris Bobbe <[email protected]> | ||
Date: Fri, 26 Jan 2024 11:43:38 -0800 | ||
Subject: [tsflower] Fix a `typeof` to `type` in Int32 import | ||
|
||
--- | ||
.../clipboard/dist/NativeClipboardModule.js.flow | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git types/@react-native-clipboard/clipboard/dist/NativeClipboardModule.js.flow types/@react-native-clipboard/clipboard/dist/NativeClipboardModule.js.flow | ||
index 58fa7b277..ae2537986 100644 | ||
--- types/@react-native-clipboard/clipboard/dist/NativeClipboardModule.js.flow | ||
+++ types/@react-native-clipboard/clipboard/dist/NativeClipboardModule.js.flow | ||
@@ -3,7 +3,7 @@ | ||
*/ | ||
import type { EmitterSubscription as $tsflower_subst$RN$EmitterSubscription } from 'tsflower/subst/react-native'; | ||
import { type TurboModule } from 'react-native/Libraries/TurboModule/RCTExport'; | ||
-import { typeof Int32 } from 'react-native/Libraries/Types/CodegenTypes'; | ||
+import { type Int32 } from 'react-native/Libraries/Types/CodegenTypes'; | ||
|
||
export interface Spec extends TurboModule { | ||
getString(): Promise<string>; | ||
-- | ||
2.32.0 | ||
|
23 changes: 22 additions & 1 deletion
23
types/react-native-safe-area-context/lib/typescript/jest/mock.js.flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
/* @flow | ||
* @generated by TsFlower | ||
*/ | ||
declare var _default: any; | ||
import type { EdgeInsets as $tsflower_import_type$_$_2e__2e__2f_src_2f_SafeArea_2e_types$EdgeInsets } from '../src/SafeArea.types'; | ||
import type { Rect as $tsflower_import_type$_$_2e__2e__2f_src_2f_SafeArea_2e_types$Rect } from '../src/SafeArea.types'; | ||
|
||
import type { | ||
JSX$Element as $tsflower_subst$React$JSX$Element, | ||
Context as $tsflower_subst$React$Context, | ||
} from 'tsflower/subst/react'; | ||
|
||
import React from 'react'; | ||
import { type Metrics } from '../src/SafeArea.types'; | ||
import { type SafeAreaProviderProps } from '../src/SafeAreaContext'; | ||
|
||
declare var _default: { | ||
initialWindowMetrics: Metrics, | ||
useSafeAreaInsets: () => $tsflower_import_type$_$_2e__2e__2f_src_2f_SafeArea_2e_types$EdgeInsets, | ||
useSafeAreaFrame: () => $tsflower_import_type$_$_2e__2e__2f_src_2f_SafeArea_2e_types$Rect, | ||
SafeAreaProvider: SafeAreaProviderProps => $tsflower_subst$React$JSX$Element, | ||
SafeAreaInsetsContext: $tsflower_subst$React$Context<$tsflower_import_type$_$_2e__2e__2f_src_2f_SafeArea_2e_types$EdgeInsets | null>, | ||
SafeAreaFrameContext: $tsflower_subst$React$Context<$tsflower_import_type$_$_2e__2e__2f_src_2f_SafeArea_2e_types$Rect | null>, | ||
... | ||
}; | ||
|
||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.