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

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

Description

@joaosouz4dev

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-->

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions