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

White screen issue just after loading carousel..Creating issue with many android devices #766

Open
Neeraj-WebNeuron opened this issue Jan 22, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Neeraj-WebNeuron
Copy link

Neeraj-WebNeuron commented Jan 22, 2025

Image

  • react-native: v0.73.0
  • react-native-reanimated: v3.14.0
  • react-native-reanimated-carousel: v3.5.1
  • react-native-gesture-handler: v2.18.0

Android Device

@Neeraj-WebNeuron Neeraj-WebNeuron added the bug Something isn't working label Jan 22, 2025
Copy link

dosubot bot commented Jan 22, 2025

Hey @Neeraj-WebNeuron! 👋 I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer. Let's squash those bugs together!

I found a similar closed issue where upgrading react-native-reanimated-carousel to ^4.0.0-alpha.0 resolved the white screen problem. This solution was based on compatibility with the current versions of react-native-gesture-handler and react-native-reanimated [1]. You might want to try upgrading to see if it resolves your issue.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@Neeraj-WebNeuron
Copy link
Author

Its not working..Can you please share another fixes..Most of the apps affecting this issue on Live which is around 30k users

Copy link

dosubot bot commented Jan 22, 2025

To address the white screen issue on Android with react-native-reanimated-carousel v3.5.1, ensure that your setup aligns with the required dependencies and configurations:

  1. Dependencies: Make sure you have the correct versions of dependencies:

    • react-native-reanimated should be version >=3.0.0.
    • react-native-gesture-handler should be version >=2.9.0 [1][2].
  2. Gesture Handler Setup: Ensure that your app is wrapped with GestureHandlerRootView as required by react-native-gesture-handler.

  3. Reanimated Setup: Follow the setup instructions for react-native-reanimated, including adding the Babel plugin to your babel.config.js:

    module.exports = {
      presets: ['module:metro-react-native-babel-preset'],
      plugins: ['react-native-reanimated/plugin'],
    };
  4. Check Default Props: Review the default props of the carousel that might affect rendering, such as loop, autoFillData, and autoPlay. Adjust these as needed to see if they impact the issue [3][4][5].

  5. Debugging: Use console.log or a debugger to check if the carousel is receiving the correct data and if any errors are logged in the console.

If these steps do not resolve the issue, consider testing on different Android devices or emulators to see if the problem is device-specific.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants