-
-
Notifications
You must be signed in to change notification settings - Fork 579
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
[Crash] Spinner - "Underflow in restore - more restores than saves" #69
Comments
Hi @Bhullnatik, |
Hi @Bhullnatik, can you post the code reproducing the problem here? I tried my spinner demo on both Genymotion emulator & physical device with Android 6.x, but it's not crashing. |
Hi @xinthink, thanks for your answer. The architecture in my app is a bit complicated, but basically I have a import { mdl } from 'react-native-material-kit';
export default mdl.Spinner.singleColorSpinner().build(); and then importing it in my project. I tried also to see if the problem was going from the ViewPager and multiple Spinners at the same time and threw a little thing together to test, it worked fine too. I went back and tried again on my project and I still have this crash. I will try to localize where it is coming from but I don't really have an idea. |
I think we can apply the approach described in traex/RippleEffect#74 (comment). Would you please test it on Android 5? So that I can decide which android version should be adapted. |
I wasn't able to replicate the issue on other Android versions, it crashes only on 6.0 (I don't have any other 6.x version to try on). All the other Android versions work great. |
Hi,
I've got a crash using react-native-material-kit 0.2.4, Android 6.0 and React-Native 0.17.+
I use a spinner in my app to display while I fetch data from a remote server, and I immediately get this error:
The problem appears to come from MKSpinner.java#L321. A quick search on Google directed me to traex/RippleEffect#74 (comment) to fix it and it works, but I'm not sure if it's the best solution.
I'm ready to discuss it or dive into documentation if you need.
The text was updated successfully, but these errors were encountered: