Giter Club home page Giter Club logo

Comments (3)

Jakemangan avatar Jakemangan commented on July 18, 2024

This is a massive issue with the iOS implementation. As soon as I press done the value goes back to being the default value if it is set with the value prop on the RNPickerSelect component.

This doesn't happen if value is unset. Android works fine.

With the below I can't select anything aside from "single"

<RNPickerSelect
                useNativeAndroidPickerStyle
                value="single"
                onValueChange={(value) => blockType.set(value)}
                items={[
                    { label: "Single", value: "single" },
                    { label: "Superset", value: "multiSet" },
                    { label: "Dropset", value: "dropSet" },
                ]}
            />

from react-native-picker-select.

saaspeter avatar saaspeter commented on July 18, 2024

yes, only IOS has this problem. So we need a variable to store and reflect the changed value when the user scroll the item list (if I do not use the variable for it, the item will go back the old value), but I don't want use this variable directly because the user still didn't press 'Done' button, maybe the user just wants to scroll items list to review these items. So what I can think of is: to add a new variable to store and reflect the temporary value, and when the user press 'Done', I will send the final value to the callback function.

But I wonder if we can change the behavior in the component, so I don't need wrap it by myself.

from react-native-picker-select.

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.