Comments (10)
you can use it now via sliderComponent
props in 0.5.0
from react-native-color-picker.
@sodik82 I am still getting a warning, even when I do provide this prop.
My Code:
import { ColorPicker, toHsv, fromHsv } from 'react-native-color-picker';
import Slider from '@react-native-community/slider';
// ...
<ColorPicker
sliderComponent={Slider}
color={headColor}
style={{ flex: 1 }} />
from react-native-color-picker.
can you try with 0.5.1
?
from react-native-color-picker.
@sodik82 Yip, worked. Thanks!
from react-native-color-picker.
@sodik82 Actually I have to reopen, the issue still persists. It was only gone shortly but the warning is back on every reload of my app. Same stack trace as above.
from react-native-color-picker.
same goes to me .. but when using trianglecolerpicker the error do not pop out when everytime I reload the app
@sodik82 Actually I have to reopen, the issue still persists. It was only gone shortly but the warning is back on every reload of my app. Same stack trace as above.
from react-native-color-picker.
you can use it now via
sliderComponent
props in0.5.0
Thanks, I added
import Slider from '@react-native-community/slider';
<ColorPicker
sliderComponent={Slider}
..
/>
and it works
from react-native-color-picker.
I made a post earlier saying that I had figured out how to add the react-native-community slider and then set the color on it by providing this as the sliderComponent
const renderSliderComponent = () => {
return (
<View>
<Slider
minimumTrackTintColor={theme.colors.medium}
/>
</View>
)
}
However, I realized that providing it this way changes the color of the slider but then the sliders stop working. Is there any props that I can add that would make it so that the sliders still work?
from react-native-color-picker.
@Jake-Mulhern - you need to pass prop to the slider so that it can work
(props) => .... <Slider {...props} color="yellow"/>
from react-native-color-picker.
you need to pass prop to the slider so that it can work
(props) => .... <Slider {...props} color="yellow"/>
@sodik82 when I pass {...props} in to the component it breaks the sliders. They are just stuck in the same location and won't move even if I don't pass the minimumTrackTintColor in as another prop.
When I log the props being passed in I get this.
{
"onValueChange": [Function bound ],
"value": 1,
}
Object {
"onValueChange": [Function bound ],
"value": 0.4823529411764706,
}
from react-native-color-picker.
Related Issues (20)
- Outer circle missing with RN62 HOT 1
- Restrict colors for picker HOT 1
- sliderComponent HOT 2
- Customize colorPreview button/s in TriangleColorPicker HOT 3
- Not Giving Colors Except Black Color
- custom button and props for TriangleColorPicker HOT 3
- TriangleColorPicker rotating with flickering on IOS HOT 5
- IPicker type declarations problem HOT 2
- Can't install properly HOT 8
- xcode 12 -Ios14 -colorpicker triangle single color inside triangle
- TypeError (TS2740) sliderComponent HOT 4
- Center color circle loose circle shape when defining 'oldColor' params HOT 2
- Holo color picker outer circle missing on ios
- Setting "color" property breaks outer circle selection HOT 3
- Change Slider Colors HOT 1
- How to label the sliders HOT 1
- Fixed the issue for future release of React Native (removal of Slider extracted from react-native)
- Slider import from react native resolved HOT 2
- Add Black Color Option
- Warning: Picker has been extracted from react-native core and will be removed in a future release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-color-picker.