From 1ffb9a9e5661bef0eac45183c8817619d9161328 Mon Sep 17 00:00:00 2001 From: Joel Small Date: Fri, 22 Jan 2021 09:22:08 +1030 Subject: [PATCH] Update examples.md Include a cautionary tale for anyone attempting to build react native with these libraries. --- docs/examples.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/examples.md b/docs/examples.md index 2e4fd2a1ef..6af211adb0 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -65,6 +65,10 @@ successfully build your own toolchain. There is a basic example at [examples/react_webpack](https://github.com/bazelbuild/rules_nodejs/tree/stable/examples/react_webpack) but it needs a lot more work to show everything that is possible! +### React Native + +Currently, rules_nodejs is incompatible with building React Native. This is due to a [long standing issue](https://github.com/facebook/metro/issues/1) with the React Native Metro Bundler being unable to support symlinks, which the build process for npm_package_bin and nodejs_binary rely on. + ### Vue We don't have a dedicated example yet, but Vue has been known to work. Follow https://github.com/bazelbuild/rules_nodejs/issues/1840 for an example.