Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android TextInput Crash SDK 28 #2137

Closed
SleeplessByte opened this issue Aug 24, 2018 · 7 comments
Closed

Android TextInput Crash SDK 28 #2137

SleeplessByte opened this issue Aug 24, 2018 · 7 comments

Comments

@SleeplessByte
Copy link

SleeplessByte commented Aug 24, 2018

Environment

(exp diagnositcs crashes powershell)

Steps to Reproduce

  1. https://snack.expo.io/BJ2qw02UX (it works)
  2. Run on Device (OnePlus 5)
  3. Nothing

Expected Behavior

The snack and device experience are equal.

Actual Behavior

Fatal error

Uncaught Error: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.new Drawable(android..content.res.Resources)' on a null object reference

Note: it takes a while to get into this state. See the related thread. Once you're in this state you have to Clear the data from the Expo app in order to go back to something that is working.

Reproducible Demo

https://snack.expo.io/BJ2qw02UX

Related

This is probably an upstream issue:
facebook/react-native#17530

@AGIsmail
Copy link

AGIsmail commented Feb 7, 2019

Does anyone know of a workaround that doesn't involve ejecting?

@mcarlstein
Copy link

I have the same problem. Is there any workaround? I don't want to eject to expi-cli to fix this.

@AGIsmail
Copy link

AGIsmail commented Aug 8, 2019

@mikaelwecode Because the issue is upstream, I believe the only fix currently available is to eject and apply the patch manually.

@bouchezb
Copy link

Hi everyone,

Facing this issue last night on expo v.33 with native-base text inputs, i finally performed a full upgrade of my expo platform to v.34 and then v.35, hoping it was a patched React Native issue.
This did not solved the issue.

Patching all styles.xml files i found in ./node_modules for my project did not fixed it either.

But i noticed that @SleeplessByte suggested to

Clear the data from the Expo app

So i deleted the Expo cache from my computer and also the Expo App from my phone.
Re Installing the Expo Mobile App and running a --clear build fixed my problem.

Hope this can help someone with this weird and annoying bug.

@tsapeta
Copy link
Member

tsapeta commented Jul 11, 2020

Closing the issue as SDK28 is no longer supported and we didn't get similar issue reports referring to currently supported SDKs 🙂 Feel free to open a new issue if you're still encountering this.

@tsapeta tsapeta closed this as completed Jul 11, 2020
@SleeplessByte
Copy link
Author

I've not seen this error, FWIW!

@EmmanuelSkapple
Copy link

I have the same problem, SDK 40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants