Skip to content

Commit

Permalink
Change the command for scaffolding a module (facebook#2526)
Browse files Browse the repository at this point in the history
* Change the command for scaffolding a module

We recently moved the scaffolding part of Bob to a new package for faster bootstrapping. The PR changes the documentation to reflect that.

* Update native-modules-setup.md

* use link to the base Readme since it has been updated

Co-authored-by: Bartosz Kaszubowski <[email protected]>
  • Loading branch information
satya164 and Simek authored Mar 3, 2021
1 parent 0fe8463 commit 53d7a38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/native-modules-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: Native Modules NPM Package Setup

Native modules are usually distributed as npm packages, except that on top of the usual JavaScript they will include some native code per platform. To understand more about npm packages you may find [this guide](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) useful.

To get set up with the basic project structure for a native module we will use the community tool called [Bob](https://github.com/callstack/react-native-builder-bob). You can go ahead further and dive deep into how that library works, but for our needs we will only execute the basic `create` script:
To get set up with the basic project structure for a native module we will use the community tool called [create-react-native-library](https://github.com/callstack/react-native-builder-bob). You can go ahead further and dive deep into how that library works, but for our needs we will only execute the basic script:

```shell
npx react-native-builder-bob create react-native-awesome-module
npx create-react-native-library react-native-awesome-module
```

Where `react-native-awesome-module` is the name you would like for the new module. After doing this you will navigate into `react-native-awesome-module` folder and bootstrap the example project by running:
Expand Down

0 comments on commit 53d7a38

Please sign in to comment.