Code Monkey home page Code Monkey logo

Comments (6)

ferdynator avatar ferdynator commented on July 23, 2024 3

Had the same issue because the bitmap in bootsplash.xml was referencing the ic_launcher resource, which is an XML file and not valid for <bitmap src>. This solved the issue:

<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
    <item android:drawable="@android:color/white" />
    <!-- replace <item><bitmap...></item> with: -->
    <item android:drawable="@mipmap/ic_launcher" android:gravity="center" />
</layer-list> 

See this Stackoverflow answer for an explanation.

from react-native-bootsplash.

zoontek avatar zoontek commented on July 23, 2024

@mnill I just give a shot to the example on an Android 10 emulator and everything went well, I guess it's something else.

Could you publish the content of your drawable/bootsplash.xml file? Thanks!

from react-native-bootsplash.

mnill avatar mnill commented on July 23, 2024

My bootsplash exactly as is in readme.

I failed to fast create minimal reproducible example, looks like it is because of combination of plugins in my project, also i have multidex enabled.

i'll try research it in future.

thank you.

from react-native-bootsplash.

mnill avatar mnill commented on July 23, 2024

Failed to reproduce from a scratch, sorry for your time.

from react-native-bootsplash.

mnill avatar mnill commented on July 23, 2024

It was because I've used react-native-make to set-icon.

It created mipmap with ic_launcher.png icon and mipmap-v26 with ic_launcher.XML for android 9+.

So on android 9+ bitmap fail to find @mipmap/ic_launcher and crashed

My first solution was wrong.

from react-native-bootsplash.

FadiAboMsalam avatar FadiAboMsalam commented on July 23, 2024

@mnill i am facing same issue how did you manage to fix that 🤔 ?

from react-native-bootsplash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.