Skip to content

Dealing with FileProvider (Android) globally within React Native and libraries #14615

@iremlopsum

Description

@iremlopsum

Description

If I want to have two libraries, for example Image Picker and Doc Viewer. They both have their own AndroidManifest file that defines a provider with android:name="android.support.v4.content.FileProvider". Which causes an issue because it can't be defined multiple times and it causes a merge issue. As I understand, this needs to be defined globally.

What is the recommended way of dealing with this, so that I as a user can define those things globally and libraries still can give me access to FileProvider?

Additional Information

  • React Native version: 0.45.1,
  • Platform: Android
  • Development Operating System:Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions