Code Monkey home page Code Monkey logo

Comments (8)

sodik82 avatar sodik82 commented on May 28, 2024 1

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.

dmko1610 avatar dmko1610 commented on May 28, 2024

@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.

sodik82 avatar sodik82 commented on May 28, 2024

sorry, for incovenience. In between, try to install version 0.5 instead.

from react-native-color-picker.

sodik82 avatar sodik82 commented on May 28, 2024

@nachiket-asbuilt - can you try to install latest version again?

from react-native-color-picker.

nachiket-asbuilt avatar nachiket-asbuilt commented on May 28, 2024

@sodik82 it installed now but i can only see slider no circle or triangle colour picker.

from react-native-color-picker.

nachiket-asbuilt avatar nachiket-asbuilt commented on May 28, 2024

@nachiket-asbuilt, make sure that you have typescript pkg installed.
If not, just complete npm i typescript -g or yarn global add typescript

@dmko1610 i tried it but got same error.

from react-native-color-picker.

nachiket-asbuilt avatar nachiket-asbuilt commented on May 28, 2024

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.
WhatsApp Image 2020-08-26 at 07 33 55

from react-native-color-picker.

sodik82 avatar sodik82 commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.