Comments (8)
I have tried our example app with latest expo and both android phone and ios simulator and it worked fine.
do you have enough space for color picker - i.e. used eg. flex:1
or set enought height
for your picker component?
from react-native-color-picker.
@nachiket-asbuilt, make sure that you have typescript
pkg installed.
If not, just complete npm i typescript -g
or yarn global add typescript
from react-native-color-picker.
sorry, for incovenience. In between, try to install version 0.5
instead.
npm i [email protected]
from react-native-color-picker.
@nachiket-asbuilt - can you try to install latest version again?
from react-native-color-picker.
@sodik82 it installed now but i can only see slider no circle or triangle colour picker.
from react-native-color-picker.
@nachiket-asbuilt, make sure that you have
typescript
pkg installed.
If not, just completenpm i typescript -g
oryarn global add typescript
@dmko1610 i tried it but got same error.
from react-native-color-picker.
Thanks. It installed now but i am unable to change height or any style of the picker. Sorry but i'm new to react native. Can you please share your code snippet?
My code:
const Home = (props) => {
return (
<ColorPicker
onColorSelected={(color) => alert(Color selected: ${color}
)}
style={{ flex: 1, height: 500 }}
/>
);
};
and following is the output.
from react-native-color-picker.
well, it looks almost correct :) there is something with width - you can try to set it explicitly. but usually the better way (than explicitly setting width/height) is to use flexbox https://reactnative.dev/docs/flexbox
color picker uses all the space the user/programmer will provide to it. so you just need to properly layout your components.
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
- 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.