TypeError: undefined is not an object (evaluating 'takerResult.uri')

Please provide the following:

  1. SDK Version: 38
  2. Platforms(all): all

I am getting TypeError: undefined is not an object (evaluating ‘takerResult.uri’). I am using the ImagePicker API to get images. In my app, I have functionality to Pick an Image from camera roll or take a picture. I only get this error when i do take a picture. I am using the same format for both, just with the different syntax where needed.