react-native-fusioncharts icon indicating copy to clipboard operation
react-native-fusioncharts copied to clipboard

New License Activation Process with v3.15.3+ using Expo

Open WilbertJanney opened this issue 4 years ago • 7 comments

FusionCharts have changed how the license is activated for v 3.15.3+. I am using 3.16.0. I tried following the instructions at the official documentation page, but I don't see where to put my key when using Expo. I have it working with the trial version at least with the instructions from https://github.com/fusioncharts/react-native-fusioncharts/issues/2.

Official Documentation

WilbertJanney avatar Feb 23 '21 00:02 WilbertJanney

@WilbertJanney Please drop a mail to [email protected] with your license details.

AyanBhadury avatar Feb 23 '21 10:02 AyanBhadury

@WilbertJanney Please drop a mail to [email protected] with your license details.

I emailed them, but they gave me generic React Native instructions. I'm trying to figure out how to make it work with Expo without having to copy over the files from the node modules folder. I might just have to do that if I can't find a way to activate it with less files included in our project.

WilbertJanney avatar Feb 23 '21 15:02 WilbertJanney

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

AyanBhadury avatar Feb 23 '21 15:02 AyanBhadury

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

My ticket is 533075. I got it to work in Expo with a watermark without having to copying over the files from the node modules so I thought I could activate the license without having to do that. Are you saying I am going to have to import the files, then add the key to the end of the fusioncharts.js file to the copied over file?

WilbertJanney avatar Feb 23 '21 15:02 WilbertJanney

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

My ticket is 533075. I got it to work in Expo with a watermark without having to copying over the files from the node modules so I thought I could activate the license without having to do that. Are you saying I am going to have to import the files, then add the key to the end of the fusioncharts.js file to the copied over file?

correct @WilbertJanney

AyanBhadury avatar Feb 23 '21 15:02 AyanBhadury

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

My ticket is 533075. I got it to work in Expo with a watermark without having to copying over the files from the node modules so I thought I could activate the license without having to do that. Are you saying I am going to have to import the files, then add the key to the end of the fusioncharts.js file to the copied over file?

correct @WilbertJanney

Well, it looks like I found another solution without having to copy over the assets from the node modules folder. After running this script: "build:assets": "fc-build-assets --fc-template ./assets/fusioncharts-tpl.html"

I then opened the generated fusioncharts.html and inserted the key at the end of the first

Edit: I found an even better way! I opened my fusioncharts-tpl.html and then inserted this after the first script tag.

<script type="text/javascript" src="fusioncharts/../../assets/fusioncharts-license.js"></script>

I created a file with the license information in a folder called "assets" in my project, then the fusioncharts-license.js file contains the license like this:

FusionCharts.options.license({ key: '<YOUR KEY>', creditLabel: false, });

Now it's automatically built with the script with no manual editing of the generated fusioncharts.html file.

WilbertJanney avatar Feb 23 '21 16:02 WilbertJanney

@WilbertJanney Please share with me the ticket id, so that I can have a quick look, please note you need to copy the lib files to the assets folder to render the chart in react native, only fusioncharts react-native component could be imported from node modules as of now.

My ticket is 533075. I got it to work in Expo with a watermark without having to copying over the files from the node modules so I thought I could activate the license without having to do that. Are you saying I am going to have to import the files, then add the key to the end of the fusioncharts.js file to the copied over file?

correct @WilbertJanney

Well, it looks like I found another solution without having to copy over the assets from the node modules folder. After running this script: "build:assets": "fc-build-assets --fc-template ./assets/fusioncharts-tpl.html"

I then opened the generated fusioncharts.html and inserted the key at the end of the first

Edit: I found an even better way! I opened my fusioncharts-tpl.html and then inserted this after the first script tag.

<script type="text/javascript" src="fusioncharts/../../assets/fusioncharts-license.js"></script>

I created a file with the license information in a folder called "assets" in my project, then the fusioncharts-license.js file contains the license like this:

FusionCharts.options.license({ key: '<YOUR KEY>', creditLabel: false, });

Now it's automatically built with the script with no manual editing of the generated fusioncharts.html file.

@WilbertJanney Good to know that the problem is solved.

AyanBhadury avatar Feb 23 '21 17:02 AyanBhadury