Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

345
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!