Skip to content

Support react-native platform-specific extension #1436

Open
@saschatimme

Description

@saschatimme

From the react-native docs:

For example, say you have the following files in your project:

BigButton.ios.js
BigButton.android.js
You can then require the component as follows:

const BigButton = require('./BigButton');

This works since react-native ships a custom javascript bundler by default.

It would be good to have the possibility to generate such file names with bucklescript. Probably some sort of name mangling would be necessary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions