-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert D55964787: Push ReactContext logic in derived classes
Differential Revision: D55964787 Original commit changeset: b404efe0c709 Original Phabricator Diff: D55964787 fbshipit-source-id: 0742b9aa870a08fed603cf6f33774d4813f5050c
- Loading branch information
1 parent
b7812a8
commit 7131f94
Showing
6 changed files
with
200 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
189 changes: 0 additions & 189 deletions
189
...react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/BridgeReactContext.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...s/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/BridgeReactContext.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.react.bridge | ||
|
||
import android.content.Context | ||
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture | ||
|
||
/** | ||
* This is the bridge-specific concrete subclass of ReactContext. ReactContext has many methods that | ||
* delegate to the react instance. This subclass will implement those methods, by delegating to the | ||
* CatalystInstance. If you need to create a ReactContext within an "bridge context", please create | ||
* BridgeReactContext. | ||
*/ | ||
@DeprecatedInNewArchitecture | ||
public class BridgeReactContext(base: Context) : ReactApplicationContext(base) {} |
Oops, something went wrong.