Skip to content

Commit fa81fac

Browse files
only21milcodexclaudemaria-rcks
authored
fix(android): preserve styled text in incoming shares (#22359)
Co-authored-by: GPT-6.1 Sol <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: maria-rcks <[email protected]>
1 parent 3989f5a commit fa81fac

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎apps/mobile/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@
176176
"@react-native-menu/menu",
177177
"expo-audio",
178178
"expo-video",
179-
"expo-network"
179+
"expo-network",
180+
"expo-sharing"
180181
]
181182
}
182183
},

‎patches/[email protected]‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ index 3381c5fd207ebb4cd8e0301aac59d307939ff162..481cdb4bc64ea5ae49919071f686324f
8282
-
8383
- listOf(
8484
+ val stream = intent.getParcelableExtraCompat<Uri>(Intent.EXTRA_STREAM)
85-
+ val text = intent.getStringExtra(Intent.EXTRA_TEXT)
85+
+ val text = intent.getCharSequenceExtra(Intent.EXTRA_TEXT)?.toString()
8686
+ if (stream == null) {
8787
+ if (!type.startsWith("text/") || text == null) return emptyList()
8888
+ return listOf(

‎pnpm-lock.yaml‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)