From 5fb84ed057e9de1db135bef53b3e9f443d1a4c10 Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Fri, 30 Aug 2019 03:39:19 -0400 Subject: [PATCH] docs: Add instructions concerning react-native > 0.60.0 --- README.md | 47 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 19d06a7..3658888 100755 --- a/README.md +++ b/README.md @@ -49,20 +49,39 @@ ## Installation -1. Installation - - Using npm: `npm install react-native-tableview --save` - - Using yarn: `yarn add react-native-tableview` -2. Link - - `react-native link react-native-tableview` - - If fails, follow manual linking steps below -3. (optional) If you will use JSON file, add it to iOS application bundle -4. Import it in your JS: - - ```js - import TableView from 'react-native-tableview'; - ``` - -### Manual Linking +Using npm: + +```bash +npm install react-native-tableview --save +``` + +or using yarn: + +```bash +yarn add react-native-tableview +``` + +> ⚠️ If you are on React Native < 0.60.0, you must use version 2.x.x of this library + +### Pods + +> If using CocoaPods or React Native version >= 0.60.0 + +```bash +cd ios && pod install && cd .. +``` + +### Linking + +> For React Native <= 0.59 only + +```bash +react-native link react-native-tableview +``` + +If fails, follow manual linking steps below, + +#### Manual Linking 1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]