Comments (11)
Missing Reproducible Example | |
---|---|
ℹ️ | We could not detect a reproducible example in your issue report. Please provide either:
|
from react-native.
Newer Version of React Native is Available! | |
---|---|
ℹ️ | You are on a supported minor version, but it looks like there's a newer patch available - 0.74.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
from react-native.
Missing Reproducible Example | |
---|---|
ℹ️ | We could not detect a reproducible example in your issue report. Please provide either:
|
from react-native.
Newer Version of React Native is Available! | |
---|---|
ℹ️ | You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
from react-native.
We need a reproducer to help you further @RustamHashymov
from react-native.
@RustamHashymov For Android, you should not enable bridgeless mode alone, but you should modify the gradle.properties
file to set the newArch
flag to true.
In 0.74, the New Architecture includes bridgeless enabled by default.
Bridgeless requires also TurboModule and Fabric to work properly, you cannot enable it alone.
from react-native.
@cipolleschi I mean here
package com.reproducerapp
import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.soloader.SoLoader
class MainApplication : Application(), ReactApplication {
override val reactNativeHost: ReactNativeHost =
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
}
override fun getJSMainModuleName(): String = "index"
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}
override val reactHost: ReactHost
get() = getDefaultReactHost(applicationContext, reactNativeHost)
override fun onCreate() {
super.onCreate()
SoLoader.init(this, false)
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
}
}
}
If I try to build and bundle with load()
not load(bridgelessEnabled=false)
it fails
from react-native.
@cipolleschi I mean here
@RustamHashymov please provide a reproducer project using this template: https://github.com/react-native-community/reproducer-react-native
from react-native.
@RustamHashymov Yes, I know: Bridgeless is not supposed to be enabled in that way, in isolation. That setup will not work as it is not meant to work.
To enable Bridgeless for Android you need to enable the New Architecture:
- Navigate to
<yourProject>/android
folder - Open the
gradle.properties
file - Change the
newArchEnabled
flag fromfalse
totrue
- Navigate back to
<yourProject>
folder - Run
yarn android
And it will work!
That Boolean in the MainActivity is there if you want to disable Bridgeless after you enabled the New Architecture.
from react-native.
@cipolleschi I forgot to mention that I have enabled it in my project and app runs successfully, but after I enable bridgeless, I can't run app and have that error.
from react-native.
If you enabled the new architecture on 0.74, you don't have to enable also bridgeless. It is enabled by default.
See reactwg/react-native-new-architecture#174
from react-native.
Related Issues (20)
- When an Activity is destroyed, the AppState listeners are not cleared HOT 5
- VirtualizedList: You have a large list that is slow to update HOT 5
- [Accessibility] [TalkBack] PanResponder callbacks do not fire when TouchableOpacity/Pressable is pressed and TalkBack is on HOT 2
- Flipper repeatedly launches when initiating JS debugger HOT 9
- TextInput with Large Font Size (>40) Causes Text to Become Invisible on iOS HOT 1
- ScrollView doesn't scroll when overflows the parent view HOT 4
- Trying to add unknown view tag HOT 5
- Open Debugger button is missing when Hermes is disabled HOT 5
- Issue with ScrollView and position: absolute in React Native 0.72.4 HOT 5
- Apperance.getColorScheme() returns incorrect value if app opened in background (e.g. using Healthkit.HKObserverQuery) HOT 7
- Incorrect TextInput email field suggestion for "Hide my Email" (iOS)
- [0.75.0] Failed to download template when init new app HOT 14
- 【Android】There is a delay in calculating the height of Modal content HOT 6
- returnkeytype do not work immediately HOT 3
- react-native build-ios error: unknown option '--device' HOT 5
- [android] Plugin [id: 'com.facebook.react.settings'] was not found in any of the following sources HOT 23
- Minimum supported Gradle version is 8.7. Current version is 8.6. RN 0.74.3 HOT 27
- [Android] Emiting Events from HeadlessTask on Android in New Arch + Bridgeless + interop layer HOT 2
- Flatten margin styles are not properly overriding when applied from specific to general properties HOT 8
- Cannot build project after a clean setup without expo HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native.