Skip to content

Commit 2331808

Browse files
guangyaoguangyao
authored andcommitted
# Conflicts: # ios/RNLocalImage/RNLocalImage/RNOrgImageView.m
2 parents e989404 + e032b2f commit 2331808

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
#### iOS
1616

1717
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`
2020
4. Run your project (`Cmd+R`)<
2121

2222
#### Android
2323

2424
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
2727
2. Append the following lines to `android/settings.gradle`:
2828
```
2929
include ':react-native-local-image'
@@ -34,20 +34,12 @@
3434
compile project(':react-native-local-image')
3535
```
3636

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-
4537

4638
## Usage
4739
```javascript
48-
import RNInputRecord from 'react-native-local-image';
40+
import RNLocalImage from 'react-native-local-image';
4941

50-
// TODO: What to do with the module?
51-
RNInputRecord;
42+
// TODO: What to do with the view?
43+
RNLocalImage;
5244
```
53-
45+

ios/RNLocalImage/RNLocalImage/RNOrgImageView.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ - (void)layoutSubviews{
2929
if ([_path length]) {
3030
UIImage *img = [[UIImage alloc]initWithContentsOfFile:_path];
3131
self.image = img;
32-
3332
}
3433
}
3534

0 commit comments

Comments
 (0)