Closed lprhodes closed 7 years ago
Hi, I also noticed that on Android and couldn't fix it. It seems to be a problem with ART on Android. Using react-native-svg instead of ART seems to fix that. I'm very busy at the moment, but some time soon I'll port this project over to use react-native-svg instead.
I just pushed the new code after the react-native-svg migration. I didn't get around to testing it on Android yet, but I think it should fix the fill issues. I'd appreciate it if you could try it out and let me know if it works now. Thanks!
I'm seeing the error "Can't find variable: Group" in the latest version.
I'd be happy enough with the old version for Android if I could remove the fill - is that achievable?
I think I fixed the Group error. ART used
The problem with the fill is the following: To give the fill under the active marker that glow effect, we use a linear gradient for the fill, with stops placed where the markers are. All stops are 0.5 opacity, but the stop for the active marker, which has a value of 1 for opacity. As far as I can tell, linear gradient doesn't work for Android, i.e. it always renders black. These are the option I can think of we have:
If you give 1.0.2 a try, please let me know if it works.
Hey - recorded a couple of videos to show some issues with the new ART when combined with setState Also it has an odd height. Old (ART) and new videos:
The setState issue should be fixed in 1.0.3. About the height: We always use 0 as the bottom of the Y axis. I suppose that is not a good assumption. For the next version I will try to add that you can set the Y axis range yourself or that it calculates it with some padding from the minimum and maximum Y values.
Hi,
While iOS works great, Android is showing a black fill for some reason. Any ideas?
iOS:
Android:
Thanks!
Luke