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

352
Visualizações
parameter specified as non-null is null: 'method kotlin.o0.d.t.e'

I am trying to build an app where you can take images or import them from internal storage and perform some operations and display the image. I am using React Native for this. Everything works fine there are no errors while compiling, But when I import an image and do some operation and send it to display then an error prompts in my app stating "parameter specified as non-null is null: method kotlin.o0.d.t.e, parameter setting" I am using ImagePicker for editing.

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I have the same issue, The error occurred when using expo-camera with expo-image-picker. If you are using expo-image-picker above expo-camera, then you need to unmount the camera while picking.

That's how I solved it:

if (isFocused) {
return (
  <View style={styles.container}>
    <ExpoCamera
      style={[
        styles.cameraPreview,
        { left: widthOffset, right: widthOffset },
      ]}
      ref={(ref) => {
        setCamera(ref);
      }}
      type={type}
    >
      <View style={styles.buttonContainer}>
        <TouchableOpacity
          onPress={async () => {
            setIsFocused(false);
            const result = await ImagePicker.launchImageLibraryAsync({
              mediaTypes: ImagePicker.MediaTypeOptions.Images,
              allowsEditing: true,
              aspect: [1, 1],
              quality: 0.5,
            });
            if (!result.cancelled) {
              navigation.navigate("PhotoPreview", {
                photoTaken: result,
                callBackKey: "NewSupportReq",
              });
            } else {
              setIsFocused(true);
            }
          }}
        >
          <Icon
            name="photo-library"
            type="material-icons"
            color="white"
            size={30}
          />
        </TouchableOpacity>
      </View>
    </ExpoCamera>
  </View>
);
} else {
return <></>;
}
about 4 years ago · Juan Pablo Isaza Relatório
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