[Share Extension] Move away from deprecated API, implement JS side of things (#5509)
This commit is contained in:
@@ -137,6 +137,7 @@ export const ComposePost = ({
|
||||
openEmojiPicker,
|
||||
text: initText,
|
||||
imageUris: initImageUris,
|
||||
videoUri: initVideoUri,
|
||||
cancelRef,
|
||||
}: Props & {
|
||||
cancelRef?: React.RefObject<CancelRef>
|
||||
@@ -199,6 +200,7 @@ export const ComposePost = ({
|
||||
onPressPublish(true)
|
||||
}
|
||||
},
|
||||
initialVideoUri: initVideoUri,
|
||||
})
|
||||
const hasVideo = Boolean(videoUploadState.asset || videoUploadState.video)
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ export function Composer({}: {winHeight: number}) {
|
||||
mention={state?.mention}
|
||||
text={state?.text}
|
||||
imageUris={state?.imageUris}
|
||||
videoUri={state?.videoUri}
|
||||
/>
|
||||
</Providers>
|
||||
</View>
|
||||
|
||||
@@ -54,6 +54,7 @@ export function Composer({winHeight}: {winHeight: number}) {
|
||||
mention={state.mention}
|
||||
text={state.text}
|
||||
imageUris={state.imageUris}
|
||||
videoUri={state.videoUri}
|
||||
/>
|
||||
</Animated.View>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user