GithubHelp home page GithubHelp logo

Comments (12)

rizal-azalli avatar rizal-azalli commented on July 17, 2024 24

I have a same problem but solved the problem with:

      <activity
        android:name=".MainActivity"
        android:label="@string/app_name"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="adjustResize">
        <intent-filter>
          <action android:name="android.intent.action.MAIN" />
        </intent-filter>
      </activity>

      <activity
        android:name="com.zoontek.rnbootsplash.RNBootSplashActivity"
        android:exported="true"
        android:theme="@style/BootTheme">
        <intent-filter>
          <action android:name="android.intent.action.MAIN" />
          <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
      </activity>

In .MainActivity please insert back

    <intent-filter>
      <action android:name="android.intent.action.MAIN" />
    </intent-filter>

from react-native-bootsplash.

camilo-5972 avatar camilo-5972 commented on July 17, 2024 3
  • Reduce the size of the splashScreen image if size is greater than 1 MB.
  • Add android:exported="true" in activity:
    <activity
    android:name=".MainActivity"
    android:exported="true"

Use this to reduce size: http://nsimage.brosteins.com/Home/UploadImage

from react-native-bootsplash.

giacomocerquone avatar giacomocerquone commented on July 17, 2024 3

I solved adding android:exported="true"
Here for more explanation: https://medium.com/handlebar-labs/how-to-add-a-splash-screen-to-a-react-native-app-ios-and-android-30a3cec835ae

from react-native-bootsplash.

sggonzalezg avatar sggonzalezg commented on July 17, 2024 1

Hi, sorry but the issue is still happing.

The error ocurred when I run react-native run-android in Terminal, but when I start diretcly form Andorid Studio starts OK

Regards

from react-native-bootsplash.

zoontek avatar zoontek commented on July 17, 2024 1

@mashad6 Since Android 12, activities from LAUNCHER category must have exported: true
Documentation: https://developer.android.com/about/versions/12/behavior-changes-12#exported

from react-native-bootsplash.

sggonzalezg avatar sggonzalezg commented on July 17, 2024

If I put android:exported="true" in <activity android:name=".MainActivity" ...>
Get this error
Captura de pantalla 2019-07-22 a la(s) 14 04 31

from react-native-bootsplash.

zoontek avatar zoontek commented on July 17, 2024

Are you installing the module twice? With RN 0.60 and autolinking, you don't need to return it in the getPackages method.

from react-native-bootsplash.

zoontek avatar zoontek commented on July 17, 2024

Could you try with the updated react-native cli instead? It's bundled with react-native now.
https://github.com/react-native-community/cli

from react-native-bootsplash.

leoxiaoping avatar leoxiaoping commented on July 17, 2024

I have same error

from react-native-bootsplash.

zoontek avatar zoontek commented on July 17, 2024

I added android:exported="true" to the example and the README. Thanks @giacomocerquone !

from react-native-bootsplash.

mashad6 avatar mashad6 commented on July 17, 2024

@zoontek Hey, setting an is causing vulnerability when running pen-test.
It says that exported should be false. setting it false causing this same issue then
Screenshot 2023-04-14 at 2 36 05 AM

from react-native-bootsplash.

mashad6 avatar mashad6 commented on July 17, 2024

@zoontek Thanks, it helped

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.