Skip to content

How to setup TSDX with an example application for React Native #388

@nartc

Description

@nartc

Current Behavior

Hi guys,

I'm currently working on a React Native library (@nartc/react-native-barcode-mask) and tsdx has been working great for me. However, I found it pretty frustrated to test out new features/bug fixes without an example application.

I've been trying to setup an example application that lives outside of the src directory of the lib and trying to link the library source (or dist) to use as a local dependency inside of the example application, but it hasn't been good. I've tried:

  1. yarn link
  2. @nartc/react-native-barcode-mask: "file:./../" or "link:./../" inside example/package.json
  3. module-resolver to resolve the module with the path to ../dist

Desired Behavior

A clear guide/documentations on how to setup an example application (with live reload if possible) for React Native library.

Again, here's the repo of the library: @nartc/react-native-barcode-mask
Any help, at all, is much appreciated. TIA!

PS: Great work on tsdx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions