Skip to content

Commit 3dc3343

Browse files
committed
chore: stub old arch impl with postMessage placeholder
1 parent a7f59cd commit 3dc3343

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/react-native-brownfield/android/src/oldarch/ReactNativeBrownfieldModule.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ class ReactNativeBrownfieldModule(reactContext: ReactApplicationContext) :
88
ReactContextBaseJavaModule(reactContext) {
99
companion object {
1010
var shouldPopToNative: Boolean = false
11+
private const val LOG_TAG = "ReactNativeBrownfieldModule"
12+
13+
fun emitMessageFromNative(text: String) {
14+
Log.w(
15+
LOG_TAG,
16+
"ReactNativeBrownfieldModule::emitMessageFromNative only supports the New Architecture. This call is ineffective and will not cause any messages to be emitted."
17+
)
18+
}
1119
}
1220

1321
@ReactMethod

0 commit comments

Comments
 (0)