Skip to content

Commit

Permalink
‘fix:修改openChooserWithMultipleOptions接口问题’ (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: ZhouChong <[email protected]>
  • Loading branch information
ZzCchong and ZhouChong authored Nov 7, 2024
1 parent 575ffbe commit 1d17bef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions harmony/send_intent/src/main/ets/RNSendIntentTurboModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class RNSendIntentTurboModule extends TurboModule implements TM.SendInten
sendText(config: TM.SendIntentNativeModule.TextIntentConfig): void {
let data: systemShare.SharedData = new systemShare.SharedData({
utd: utd.UniformDataType.PLAIN_TEXT,
content: `${config.text}`,
content: `${config}`,
});
let controller: systemShare.ShareController = new systemShare.ShareController(data);
let context = this.ctx.uiAbilityContext;
Expand Down Expand Up @@ -192,19 +192,19 @@ export class RNSendIntentTurboModule extends TurboModule implements TM.SendInten
if (item.text) {
data.addRecord({
utd: utd.UniformDataType.TEXT,
uri: item.text
content: item.text
});
}
if (item.imageUrl) {
data.addRecord({
utd: utd.UniformDataType.PNG,
uri: item.imageUrl
content: item.imageUrl
});
}
if (item.videoUrl) {
data.addRecord({
utd: utd.UniformDataType.VIDEO,
uri: item.videoUrl
content: item.videoUrl
});
}
})
Expand Down

0 comments on commit 1d17bef

Please sign in to comment.