Skip to content

Commit 779d16a

Browse files
committed
update docs
1 parent 2a38542 commit 779d16a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/activityresult/__docs__

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/activityresult/__docs__/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ Notes for library authors:
142142
- Register early, in a field initializer or the constructor. Only launching
143143
needs an Activity.
144144
- An Activity that is not an `ActivityResultRegistryOwner` cannot serve
145-
launchers. They stay queued and a warning is logged.
145+
launchers; binding to one throws `IllegalStateException`. In practice every
146+
`ComponentActivity` (including `ReactActivity`) is a registry owner.
146147
- After the process is killed and restored, AndroidX redelivers a pending result
147148
under the same key, but any state your module held for the call (typically a
148149
`Promise`) is gone. Write callbacks so they tolerate firing with no pending

0 commit comments

Comments
 (0)