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.
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.