Skip to content

Slider not align / duration line not in align with maximun track line #4014

@manishgarkar2

Description

@manishgarkar2

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @rneui/base@4.0.0-rc.8 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@rneui/base/dist/Slider/Slider.js b/node_modules/@rneui/base/dist/Slider/Slider.js
index 87dab6d..4f8e42a 100644
--- a/node_modules/@rneui/base/dist/Slider/Slider.js
+++ b/node_modules/@rneui/base/dist/Slider/Slider.js
@@ -15,7 +15,7 @@ import { Rect } from './components/Rect';
 import { SliderThumb } from './components/SliderThumb';
 const TRACK_SIZE = 4;
 const THUMB_SIZE = 40;
-const TRACK_STYLE = Platform.select({ web: 0, default: -1 });
+const TRACK_STYLE = Platform.select({ web: 0, default: -1 ,android:0 , ios:0 });
 const DEFAULT_ANIMATION_CONFIGS = {
     spring: {
         friction: 7,

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions