Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

125
Visualizações
Can't close single view in react native ios

new here to react native. I am using the exact code that is in the expo imagePicker guide (https://docs.expo.dev/versions/latest/sdk/imagepicker/) and I am unable to get the image picking UI in iOS to be on top.

const _pickImage = async () => {
    let result = await ImagePicker.launchImageLibraryAsync({
      mediaTypes: ImagePicker.MediaTypeOptions.All,
      allowsEditing: true,
      aspect: [4, 3],
      quality: 1,
    });

My modal:

<Modal>
  isVisible={this.state.isModal5Visible}
  onBackdropPress={() => this.setState({ isModal5Visible: false })}
  <View style={{flex:1}}>
    <Button  primary style={{flexDirection: 'row', alignItems: 'center', justifyContent:'flex-start'}}
                    onPress={this._pickImage}
      >
    <Icon name='ios-book' />
    <Text style={ Platform.OS === 'ios' ? {fontSize:16} : {fontSize:12,paddingLeft:4} }>Gallery</Text>
    </Button>
  </View>
</Modal>

What happens here is that my view is staying on top of the image picker UI on iOS only, not on Android:

enter image description here

When I add a close event, it closes both the view and the image picker UI. How can I only close this view?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda