Skip to content

Picker broken for my #8

@filippiR

Description

@filippiR

Hi,
the picker is not changing the value by the code just clicking, and on the web when it opens the texts do not appear, how to solve this?

<Picker
                  items={escolas}
                  value={escola_id}
                  placeholder="Escolha a escola"
                  selectionBackgroundColor={"#FFF"}
                  onValueChange={(val) => setEscolaId(val)}
                />
                  <Button
          text={loading ? "Carregando" : "Alterar"}
          onPress={() => {
          setEscolaId(2);
          }}
          style={{
            marginTop: 20,
          }}
          disabled={loading}
        />
    it changes the state but does not change on the screen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions