You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* set `libraryPath` property to the `FusionCharts` component as follows:
19
+
* Create `assets` folder in `android/app/src/main` directory if it doesn't exist.
20
+
* Copy `FusionCharts` library in the `assets` folder (in most cases copy `node_modules/fusioncharts` folder).
21
+
* Create a file named `fuioncharts.html` in this `assets` folder with the required `FusionCharts` module files. Find the sample html file [here](https://raw.githubusercontent.com/fusioncharts/react-native-fusioncharts/master/templates/fuioncharts-tpl-android.html).
22
+
* Set `libraryPath` property to the `FusionCharts` component as follows:
101
23
102
24
```html
103
25
<FusionCharts
@@ -109,59 +31,30 @@ The `android/app/src/main/assets/fuioncharts.html` file:
109
31
110
32
### For iOS
111
33
112
-
* create `assets` folder in your project root if it doesn't exist,
113
-
* copy `fusioncharts` library into this `assets` folder (requires only when the licensed version of fusioncharts is used),
114
-
* create a file named `fuioncharts-tpl.html` in this `assets` folder with following content:
34
+
* Create `assets` folder in your project root if it doesn't exist.
35
+
* Copy `FusionCharts` library in this `assets` folder (requires only when the licensed version of `FusionCharts` is used).
36
+
* Create a file named `fuioncharts-tpl.html` in this `assets` folder with the required `FusionCharts` module files. Find the sample html file [here](https://raw.githubusercontent.com/fusioncharts/react-native-fusioncharts/master/templates/fuioncharts-tpl-ios.html).
37
+
* Add a `build:assets` script in Application's `package.json` file as follows:
115
38
116
-
The `./assets/fuioncharts-tpl.html` file:
117
-
118
-
```html
119
-
<!DOCTYPE html>
120
-
<html>
121
-
122
-
<head>
123
-
<!-- Here include the required fusioncharts modules -->
The `-l ./assets/fusioncharts` option is only required when you copied `fusioncharts` libarary in your `assets` folder.
53
+
The `--fc-library ./assets/fusioncharts` option is only required when you copied `FusionCharts` library in your `assets` folder.
54
+
55
+
**Notes:**`fc-build-assets` is an utility binary provided to package the `FusionCharts` libraries from the template `.html` file as needed by the React Native iOS build process.
163
56
164
-
*set`libraryPath` property to the `FusionCharts` component as follows:
57
+
*Set`libraryPath` property to the `FusionCharts` component as follows:
165
58
166
59
```html
167
60
<FusionCharts
@@ -171,7 +64,7 @@ The `-l ./assets/fusioncharts` option is only required when you copied `fusionch
171
64
/>
172
65
```
173
66
174
-
*run the following command before running the app:
67
+
*Run the following command before running the app:
0 commit comments