connectrpc / examples-es

Examples for using Connect with various TypeScript web frameworks and tooling.
https://connectrpc.com/
Apache License 2.0
122 stars 23 forks source link

Fix React Native subpath imports #2133

Closed smaye81 closed 3 weeks ago

smaye81 commented 3 weeks ago

Using the Metro bundler with React Native requires enabling package exports (docs) via a Metro config file. This adds said file and some necessary dependencies.

Note that we also spell this out in our Protobuf-ES docs.

It seems odd to have to use the react-native-svg-transformer here. But without it, we get asset errors. This combination here appears to be the right incantation to get things to work. Taken from this issue.