Skip to content

Commit

Permalink
docs: describing package removal (react-native-community#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudscann-dev authored May 11, 2022
1 parent d4a8a26 commit 220b3c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/autolinking.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ yarn react-native run-android

That's it. No more editing build config files to use native code.

Also, removing a library is similar to adding a library:
```sh
# uninstall
yarn remove react-native-webview
cd ios && pod install && cd .. # CocoaPods on iOS needs this extra step
```

## How does it work

Each platform defines its own [`platforms`](./platforms.md) configuration. It instructs the CLI on how to find information about native dependencies. This information is exposed through the [`config`](./commands.md#config) command in a JSON format. It's then used by the scripts run by the platform's build tools. Each script applies the logic to link native dependencies specific to its platform.
Expand Down

0 comments on commit 220b3c2

Please sign in to comment.