File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ Library implements a general approach for using PaintCode generated files with R
8
8
9
9
> Convert generated Java file to Kotlin file.
10
10
11
+ > Do not forget to use name "PaintCode" for exported classes.
12
+
11
13
2 . Place exported PaintCode files into projects root folders.
12
14
13
- 3 . Install the library from NPM
14
-
15
- ``` sh
16
- $ yarn add react-native-tref-paint-code
17
- ```
15
+ 3 . Install the library from NPM, by following instructions on latest package:
16
+ https://github.com/ReferenceArmada/react-native-tref-paint-code/packages/
18
17
19
18
4 . Install dependencies for iOS project
20
19
@@ -23,8 +22,6 @@ $ cd ios
23
22
$ pod install
24
23
```
25
24
26
- > Do not forget to add ** use_frameworks!** on the top of the podfile.
27
-
28
25
5 . On native Android project, open ** MainApplication.java** file and add following to the file:
29
26
30
27
``` java
@@ -62,7 +59,7 @@ import {TrefPaintCode,
62
59
TrefPaintCodeType ,
63
60
TrefPaintCodeResizingBehaviour ,
64
61
TrefPaintCodeHelper }
65
- from ' react-native-tref-paint-code' ;
62
+ from ' @referencearmada/ react-native-tref-paint-code' ;
66
63
```
67
64
68
65
2 . Use ** TrefPaintCode** component in views.
Original file line number Diff line number Diff line change 9
9
#import < Foundation/Foundation.h>
10
10
#import " DrawerEngine.h"
11
11
#import < objc/runtime.h>
12
- #import " react_native_tref_paint_code/react_native_tref_paint_code -Swift.h"
12
+ #import " TrefPaintCode -Swift.h"
13
13
14
14
@implementation DrawerEngine
15
15
Original file line number Diff line number Diff line change 259
259
PRODUCT_NAME = "react_native_tref_paint_code-Swift.h";
260
260
SKIP_INSTALL = YES;
261
261
SWIFT_OBJC_BRIDGING_HEADER = "TrefPaintCode-Bridging-Header.h";
262
+ SWIFT_OBJC_INTERFACE_HEADER_NAME = "TrefPaintCode-Swift.h";
262
263
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
263
264
SWIFT_VERSION = 5.0;
264
265
};
281
282
PRODUCT_NAME = "react_native_tref_paint_code-Swift.h";
282
283
SKIP_INSTALL = YES;
283
284
SWIFT_OBJC_BRIDGING_HEADER = "TrefPaintCode-Bridging-Header.h";
285
+ SWIFT_OBJC_INTERFACE_HEADER_NAME = "TrefPaintCode-Swift.h";
284
286
SWIFT_VERSION = 5.0;
285
287
};
286
288
name = Release;
You can’t perform that action at this time.
0 commit comments