# `react_native_workspace`

Discovers build and test targets for a React Native library from its native
package files. No Struo manifest is required.

Struo looks for `react-native-builder-bob` and a `prepack` script of `bob build`
in `package.json`. With a supported lockfile, the discovered workspace target
builds the library and exports eligible workspace apps that use Expo and static
`app.json` configuration. Expo exports JavaScript bundles and assets, not Hermes
bytecode or native binaries. The dependency install can fetch packages missing
from the local cache.

```sh
struo query targets
struo build react-native
struo build library
```

Struo also discovers an embedded Jest suite with the default test scope when
the package's `test` script is `jest`. Install the package's development
dependencies with its package manager before running `struo test jest`.

See the [React Native guide](/docs/guide/graph/react-native) for native
application builds and layouts that require explicit targets.
