diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index c9f23175de..74b0c8a81c 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -197,24 +197,8 @@ export function Outer({ /** * @deprecated use `Dialog.ScrollableInner` instead */ -export function Inner({children, style, header}: DialogInnerProps) { - const insets = useSafeAreaInsets() - return ( - <> - {header} - - {children} - - - ) +export function Inner(props: DialogInnerProps) { + return } export const ScrollableInner = forwardRef( diff --git a/src/components/Dialog/index.web.tsx b/src/components/Dialog/index.web.tsx index 3bb9e478a7..5363fbf1bd 100644 --- a/src/components/Dialog/index.web.tsx +++ b/src/components/Dialog/index.web.tsx @@ -165,6 +165,9 @@ export function Outer({ ) } +/** + * @deprecated use `Dialog.ScrollableInner` instead + */ export function Inner({ children, style, diff --git a/src/screens/Onboarding/StepProfile/AvatarCircle.tsx b/src/screens/Onboarding/StepProfile/AvatarCircle.tsx index 8cb3da9f1d..64fb26ee7d 100644 --- a/src/screens/Onboarding/StepProfile/AvatarCircle.tsx +++ b/src/screens/Onboarding/StepProfile/AvatarCircle.tsx @@ -1,8 +1,7 @@ import {useMemo} from 'react' import {View} from 'react-native' import {Image as ExpoImage} from 'expo-image' -import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' +import {useLingui} from '@lingui/react/macro' import {AvatarCreatorCircle} from '#/screens/Onboarding/StepProfile/AvatarCreatorCircle' import {useAvatar} from '#/screens/Onboarding/StepProfile/index' @@ -18,7 +17,7 @@ export function AvatarCircle({ openLibrary: () => unknown openCreator: () => unknown }) { - const {_} = useLingui() + const {t: l} = useLingui() const t = useTheme() const {avatar} = useAvatar() @@ -63,7 +62,7 @@ export function AvatarCircle({ )} - + - ) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index ce6b17b8cb..8a2f3b7162 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -713,6 +713,11 @@ export const ComposePost = ({ const [publishOnUpload, setPublishOnUpload] = useState(false) const onClose = useCallback(() => { + // HACKFIX: Android keyboard doesn't consistently dismiss IME + // TODO: investigate the root cause and fix properly -sfn + if (IS_ANDROID) { + Keyboard.dismiss() + } closeComposer() clearThumbnailCache(queryClient) revokeAllMediaUrls()