Firstly, thanks for your work on this project! π
Today I used patch-package to patch react-native-ui-lib@7.6.2 for the project I'm working on.
I was receiving the following error Cannot read property 'onTrackLayout' of undefined. I traced this down to the Slider component. This patch fixes this error in my project by passing onTrackLayout to the renderTrack() function call.
I also received this error Invariant Violation: [1197,"RCTView",{"left":"<<NaN>>"}] is not usable as a native method argument which was coming from the Slider, I am not suggesting this fix in the patch because I hardcoded a value being used for my project. However, it seems like this.minInitialValue is NaN.
The fix for this was:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
react-native-ui-lib@7.6.2
for the project I'm working on.I was receiving the following error
Cannot read property 'onTrackLayout' of undefined
. I traced this down to the Slider component. This patch fixes this error in my project by passingonTrackLayout
to therenderTrack()
function call.Here is the diff that solved my problem:
I also received this error
Invariant Violation: [1197,"RCTView",{"left":"<<NaN>>"}] is not usable as a native method argument
which was coming from the Slider, I am not suggesting this fix in the patch because I hardcoded a value being used for my project. However, it seems likethis.minInitialValue
is NaN. The fix for this was:This issue body was partially generated by patch-package.