Creation:2026-01-21Last update:2026-01-21

    react-native-intlayer Package

    The react-native-intlayer package provides the necessary tools to integrate Intlayer into React Native applications. It includes a provider and polyfills for locale support.

    Installation

    npm install react-native-intlayer

    Exports

    Provider

    Component Description
    IntlayerProvider Provider component that wraps your application and provides the Intlayer context.

    Import:

    import "react-native-intlayer";

    Polyfill

    Function Description
    intlayerPolyfill Function that applies the necessary polyfills for React Native to support Intlayer.

    Import:

    import "react-native-intlayer";

    Metro Configuration

    The react-native-intlayer package provides Metro configuration utilities to ensure that Intlayer functions correctly with React Native.

    Function Description
    configMetroIntlayer Asynchronous function that prepares Intlayer and merges the Metro configuration.
    configMetroIntlayerSync Synchronous function that merges the Metro configuration without preparing Intlayer resources.
    exclusionList Creates a RegExp pattern for Metro's blockList to exclude content files from the bundle.

    Import:

    import "react-native-intlayer/metro";
    import "react-native-intlayer/metro";