Skip to content

Commit 81bbbe3

Browse files
vladd-gfacebook-github-bot
authored andcommitted
Fix deprecation message (#53751)
Summary: This pull request fixes a small error in the deprecation message for `ReactContextBaseJavaModule#getCurrentActivity()`, where the reference to `getReactApplicationContext().getCurrentActivity()` contained a syntax error. ## Changelog: [ANDROID] [FIXED] - Correct deprecation message for `ReactContextBaseJavaModule#getCurrentActivity()` Pull Request resolved: #53751 Reviewed By: javache Differential Revision: D82302032 Pulled By: cortinico fbshipit-source-id: 130991ef514663223165c30fccb920ce87403148
1 parent 35f6ed1 commit 81bbbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public abstract class ReactContextBaseJavaModule : BaseJavaModule {
2525
* this method whenever you actually need the Activity and make sure to check for `null`.
2626
*/
2727
@Deprecated(
28-
"Deprecated in 0.80.0. Use getReactApplicationContext.getCurrentActivity() instead.",
28+
"Deprecated in 0.80.0. Use getReactApplicationContext().getCurrentActivity() instead.",
2929
ReplaceWith("reactApplicationContext.currentActivity"),
3030
)
3131
protected fun getCurrentActivity(): Activity? {

0 commit comments

Comments
 (0)