Skip to content

Commit

Permalink
Merge pull request #299 from EvanBacon/patch-1
Browse files Browse the repository at this point in the history
[README] Added Expo installation instructions.
  • Loading branch information
gre committed Apr 24, 2020
2 parents 276b250 + 54bc112 commit 6a388b1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Expand Up @@ -8,20 +8,24 @@ Capture a React Native view to an image.

```bash
yarn add react-native-view-shot

# In Expo

expo install react-native-view-shot
```

Make sure react-native-view-shot is correctly linked in XCode (might require a manual installation, refer to [React Native doc](https://facebook.github.io/react-native/docs/linking-libraries-ios.html)).
Make sure `react-native-view-shot` is correctly linked in Xcode (might require a manual installation, refer to [React Native doc](https://reactnative.dev/docs/linking-libraries-ios.html)).

**Before React Native 0.60.x you would have to:**

```bash
react-native link react-native-view-shot
```

**Since 0.60.x, [autolink](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) should just work**, On iOS, you might have to:
**Since 0.60.x, [autolink](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) should just work**, on iOS, you'll need to ensure the CocoaPods are installed with:

```bash
cd ios && pod install && cd ..
npx pod-install
```

## Recommended High Level API
Expand Down

0 comments on commit 6a388b1

Please sign in to comment.