Coder Social home page Coder Social logo

Comments (8)

cstpraveen avatar cstpraveen commented on September 23, 2024 1

Hi try to change from source={{ html: newHTML, baseUrl: 'web/' }} to source={{ html: newHTML, baseUrl: 'http://localhost' }}.

It will work, or else try to remove baseUrl from the source attribute.

from react-native-highcharts.

salujaharkirat avatar salujaharkirat commented on September 23, 2024

events to native code?

from react-native-highcharts.

windydang26 avatar windydang26 commented on September 23, 2024

yes! i'm using react-native. events still running, but seem is web enviroment. i cannot consolog, only alert() as web. how to transmission params of hightchart to component?

from react-native-highcharts.

salujaharkirat avatar salujaharkirat commented on September 23, 2024

Webview component injects a function called postMessage in your webview html when you pass onMessage prop to it. You can use this postMessage to fire events from webview.

You can try something like this https://snack.expo.io/Bycv3CnMz

from react-native-highcharts.

windydang26 avatar windydang26 commented on September 23, 2024

oh! thank you very much! i will try it :)

from react-native-highcharts.

windydang26 avatar windydang26 commented on September 23, 2024

@jinxac Webview component in library not contain onMessage props. i fork repo and edit but cannot fire onMessage. i want to fire event to receiver data point when click in highchart? are you have other idea? thank.

from react-native-highcharts.

salujaharkirat avatar salujaharkirat commented on September 23, 2024

are u trying this on android @windydang26 ?

from react-native-highcharts.

windydang26 avatar windydang26 commented on September 23, 2024

so sorry. i forget method window.postMessage. after i use postMessage to send data and onMessage to receiver data as you told. i fired events. hi. thank you @jinxac :)

from react-native-highcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.