Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

import is being duplicated in the set-splash command #66

Open
joaosouz4dev opened this issue Jun 2, 2021 · 0 comments
Open

import is being duplicated in the set-splash command #66

joaosouz4dev opened this issue Jun 2, 2021 · 0 comments

Comments

@joaosouz4dev
Copy link

in MainActivity.java
this import is being duplicated in the set-splash command

import org.devio.rn.splashscreen.SplashScreen;
import com.facebook.react.ReactActivity;

I think it's this code that does this, is there a way to optimize?

./src/modules/setSplashScreen/android/service.ts

<!--StartFragment-->  
applyPatch(mainActivityPath, {    
  pattern: /^(.+?)(?=import)/gs,    
  patch: 'import android.os.Bundle;\n' + 'import org.devio.rn.splashscreen.SplashScreen;\n', 
});
<!--EndFragment-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant