question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toast and ActionSheet both cause crashes on call

See original GitHub issue

Hey there,

First of all, great project here. Makes prototyping very quick and basically has almost everything you need for your production application.

However there is two components that are causing me issues (and I see them logged in Firebase Crashlytics a lot) and that is the Toast and ActionSheet.

image

Looking through the issues on this repo, every time it is brought up, it is said that you just have to add <Root> as your top-most component to your application.

Whilst this does work a lot of the time, almost all of the time, there is a specific set of instructions, in a specific order that causes a cannot call show on undefined. This happens to both the Toast and ActionSheet

There have been work arounds suggested, and multiple issues opened and subsequently closed on this particular issue but I am not convinced any of the suggested workarounds have actually worked for very long.

react-native 0.52.0 react 16.3.2 native-base 2.4.3

Is the bug present in both ios and android or in any one of them? Both

I am following the documentation directly, my topmost component’s first child is <Root> and the rest of my application is inside of that, including navigation, redux providers, etc.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
SupriyaKalghatgicommented, May 21, 2018

Will be merged this week, with some new components

1reaction
AleskiWebcommented, May 18, 2018

@kstolte I did the same 😂 - just awaiting release

Read more comments on GitHub >

github_iconTop Results From Across the Web

ActionSheet crash on iPad | Apple Developer Forums
I would like to present an action sheet on iPad using SwiftUI, but it crashes with the following error: Terminating app due to...
Read more >
Will Toast.makeText cause app crash when I invoke it in ...
Yes. You can only show toast messages from the main UI thread. To launch a toask message from any other thread, you can...
Read more >
Troubleshooting the Toast App on the POS
Follow the steps below to troubleshoot: If the tablet appears to be frozen or the Toast POS stops working, you may receive the...
Read more >
How to Resolve App Crashes in Android Studio?
1. Observe the App Crash. Suppose you have built an application with multiple activities or fragments or both then you need to observe...
Read more >
Detect and diagnose crashes - Android Developers
There are many situations that can cause a crash in your app. Some reasons are obvious, like checking for a null value or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found