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

@joaosouz4dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions