|
15 | 15 | #### iOS |
16 | 16 |
|
17 | 17 | 1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` |
18 | | -2. Go to `node_modules` ➜ `react-native-local-image` and add `RNInputRecord.xcodeproj` |
19 | | -3. In XCode, in the project navigator, select your project. Add `libRNInputRecord.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` |
| 18 | +2. Go to `node_modules` ➜ `react-native-local-image` and add `RNLocalImage.xcodeproj` |
| 19 | +3. In XCode, in the project navigator, select your project. Add `libRNLocalImage.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` |
20 | 20 | 4. Run your project (`Cmd+R`)< |
21 | 21 |
|
22 | 22 | #### Android |
23 | 23 |
|
24 | 24 | 1. Open up `android/app/src/main/java/[...]/MainActivity.java` |
25 | | - - Add `import com.reactlibrary.RNInputRecordPackage;` to the imports at the top of the file |
26 | | - - Add `new RNInputRecordPackage()` to the list returned by the `getPackages()` method |
| 25 | + - Add `import com.local.image.RCTLocalPackage;` to the imports at the top of the file |
| 26 | + - Add `new RCTLocalPackage()` to the list returned by the `getPackages()` method |
27 | 27 | 2. Append the following lines to `android/settings.gradle`: |
28 | 28 | ``` |
29 | 29 | include ':react-native-local-image' |
|
34 | 34 | compile project(':react-native-local-image') |
35 | 35 | ``` |
36 | 36 |
|
37 | | -#### Windows |
38 | | -[Read it! :D](https://github.com/ReactWindows/react-native) |
39 | | - |
40 | | -1. In Visual Studio add the `RNInputRecord.sln` in `node_modules/react-native-local-image/windows/RNInputRecord.sln` folder to their solution, reference from their app. |
41 | | -2. Open up your `MainPage.cs` app |
42 | | - - Add `using Com.Reactlibrary.RNInputRecord;` to the usings at the top of the file |
43 | | - - Add `new RNInputRecordPackage()` to the `List<IReactPackage>` returned by the `Packages` method |
44 | | - |
45 | 37 |
|
46 | 38 | ## Usage |
47 | 39 | ```javascript |
48 | | -import RNInputRecord from 'react-native-local-image'; |
| 40 | +import RNLocalImage from 'react-native-local-image'; |
49 | 41 |
|
50 | | -// TODO: What to do with the module? |
51 | | -RNInputRecord; |
| 42 | +// TODO: What to do with the view? |
| 43 | +RNLocalImage; |
52 | 44 | ``` |
53 | | - |
| 45 | + |
0 commit comments