question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not work at react-native 0.61.4

See original GitHub issue

Run react-native info in your project and share the content. React Native Environment Info: System: OS: Windows 10 CPU: (20) x64 Intel® Xeon® CPU E5-2660 v2 @ 2.20GHz Memory: 3.98 GB / 15.93 GB Binaries: Yarn: 1.19.1 - C:\Users\Administrator.SC-201910230934\AppData\Roaming\npm\yarn.CMD npm: 6.12.0 - C:\Program Files\nodejs\npm.CMD What react-native-splash-screen version are you using? 3.2.0 What platform does your issue occur on? (Android/iOS/Both) Android Describe your issue as precisely as possible : The react-native 0.61.4 migrates onCreate function to MainApplication.java。 Show us the code you are using?

MainApplication.java:

import org.devio.rn.splashscreen.SplashScreenReactPackage; //<–添加这一句 import org.devio.rn.splashscreen.SplashScreen;//<–添加这一句 import android.os.Bundle; // <–添加这一句 @Override protected List<ReactPackage> getPackages() { @SuppressWarnings(“UnnecessaryLocalVariable”) List<ReactPackage> packages = new PackageList(this).getPackages(); packages.add(new SplashScreenReactPackage());//<–添加这一句

      // Packages that cannot be autolinked yet can be added manually here, for example:
      // packages.add(new MyReactNativePackage());
      return packages;
    }

@Override public void onCreate() { super.onCreate(); SplashScreen.show(this);//<–添加这一句 SoLoader.init(this, false); initializeFlipper(this); // Remove this line if you don’t want Flipper enabled }

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:16

github_iconTop GitHub Comments

47reactions
giacomocerquonecommented, Nov 13, 2019

Use this package, way better, just saying to increment its visibility (it’s not mine) because I believe that the good work, and the effort that it requires, must be paid off somehow 😃

https://github.com/zoontek/react-native-bootsplash

19reactions
giacomocerquonecommented, Nov 13, 2019

oh good, so instead of promoting the right one, we should keep using the broken ones. Clearly I didn’t know that in 0.61.4 it’s still working considering that the last commit was in April and that a lot of people (the author of this and the other 4 guys that liked the first comment plus many other issues) reported the packages as broken.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Navigation error with react native latest version 0.61.4
I upgraded my old project in react native version(0.61.4) then getting error related navigation option undefined. ... You have used Drawer in ...
Read more >
Upgrading to new versions - React Native
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies.
Read more >
react-native - npm
React Native apps may target iOS 12.4 and Android 5.0 (API 21) or newer. You may use Windows, macOS, or Linux as your...
Read more >
React Native Upgrade Helper
React Native 0.64 includes Hermes opt-in on iOS and React 17. ... Not all packages are supported out-of-the-box. ... 7, "ios": "react-native run-ios",....
Read more >
private repo is not compatible with native modules-React Native
[Solved]-private repo is not compatible with native modules-React Native. Search. score:0. Accepted answer. npx create-react-native-library [your-lib-name].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found