Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could I custom callback to this smart chart? #58

Open
L-Jovi opened this issue Sep 19, 2016 · 4 comments
Open

could I custom callback to this smart chart? #58

L-Jovi opened this issue Sep 19, 2016 · 4 comments

Comments

@L-Jovi
Copy link

L-Jovi commented Sep 19, 2016

hi, thanks for your smart chart in react-native js side, it's cool and convenient.

I want to get x axis and y axis value when I interact with chart component, I notice that native Android implements almost all event type while iOS also implement part of some,

but I can't find any bridge which defined in our component swift code, maybe I'm missing, how could I custom callback here?

thanks for your time.

@L-Jovi
Copy link
Author

L-Jovi commented Sep 21, 2016

any idea?

@Jpadilla1
Copy link
Owner

Jpadilla1 commented Sep 21, 2016

Hi @L-Jovi it's currently note implemented, but the way to do this is by passing native events to javascript and in, let's say the Scatter Chart component, the callback would be called with the values. I haven't had time to work on this, but if anyone wants to take a shot at it, I'd recommend starting from here https://facebook.github.io/react-native/docs/communication-ios.html#calling-react-native-functions-from-native-events and here https://facebook.github.io/react-native/docs/native-components-ios.html#events .

@L-Jovi
Copy link
Author

L-Jovi commented Sep 21, 2016

@Jpadilla1 thanks for your reply, I'll try it.

@prithsharma
Copy link
Collaborator

Any updates on this?
I can try implementing this but since I've no iOS experience, I'll need some support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants