Comments (3)
Hi! I happened to have the same issue (just on one bottom sheet and just in release builds, not in debug ones). Do I have to both remove the SlideTransition
and remove the BottomSheetNavigator
altogether?
I don't know if it helps, but in my case I have the BottomSheetNavigator
as parent and the root navigator as a child, the crash happens just when I call show(screen: Screen)
on the former.
EDIT: I realized I am using a third Navigator inside the bottom sheet content, and that is the cause of the issue, this explains why it crashes only with that bottom sheet and not the other plain ones.
from voyager.
Hi! I happened to have the same issue (just on one bottom sheet and just in release builds, not in debug ones). Do I have to both remove the
SlideTransition
and remove theBottomSheetNavigator
altogether?I don't know if it helps, but in my case I have the
BottomSheetNavigator
as parent and the root navigator as a child, the crash happens just when I callshow(screen: Screen)
on the former.EDIT: I realized I am using a third Navigator inside the bottom sheet content, and that is the cause of the issue, this explains why it crashes only with that bottom sheet and not the other plain ones.
Now I use the following code to use BottomSheetNavigator and Transition simultaneously . I hope it will help you.
Navigator(MainScreen) { navigator ->
GlobalNavigatorWrapper(navigator) {
MyBottomSheetNavigator {
ParcelableNavigatorWrapper {
MyCustomTransition(navigator) { screen ->
screen.Content()
}
}
}
}
}
@OptIn(ExperimentalVoyagerApi::class)
@Composable
fun ParcelableNavigatorWrapper(content: @Composable () -> Unit) {
CompositionLocalProvider(
LocalNavigatorSaver provides parcelableNavigatorSaver(),
content = content
)
}
val LocalGlobalNavigator: ProvidableCompositionLocal<Navigator> =
staticCompositionLocalOf { error("LocalGlobalNavigator not initialized") }
@Composable
fun GlobalNavigatorWrapper(navigator: Navigator, content: @Composable () -> Unit) {
CompositionLocalProvider(LocalGlobalNavigator provides navigator, content)
}
from voyager.
I am removing the nested navigator inside the bottom sheet, I do not actually need it and can achieve a similar behaviour with Crossfade
to have a transition.
from voyager.
Related Issues (20)
- Problem with @Transient during Screen serialization
- 最新版本打包ios 会报错
- Need a dialog box style screen navigator
- Pass data to previous composable screens
- Crash when take picture HOT 4
- Voyager-Worker HOT 1
- Wasm URL routing support HOT 1
- Lifecycle Events Not Triggered During Screen Navigation HOT 4
- ScreenModel function goes into infinite loop when calling from screen HOT 2
- Screen Overridable Content function call multipleTimes when pass data from one Screen to another in Android project.
- Crash on implementing ScreenLifecycleOwner HOT 2
- Crashing When The App Starts Up Again, After been Minimized For a period of Time HOT 1
- App Crashes, When The Button to Navigate to Another Screen, Is Pressed Twice in Succession
- Help on using new navigatorViewModel
- IllegalStateException when close window on Compose Multiplatform for Desktop
- viewmodel not destroy in recomposition state HOT 1
- TabNavigator not Allowing Theme change HOT 3
- Provide onDispose callback in the LifecycleEffectOnce api HOT 1
- ReferenceError: getCachedJsObject is not defined HOT 3
- TabNavigator inside Screen not working
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 voyager.