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

394
Views
TypeError: null is not an object (evaluating 'RNFetchBlob.DocumentDir'). After importing RNFetchBlob this error is coming can anyone please help me

TypeError: null is not an object (evaluating 'RNFetchBlob.DocumentDir') Anyone can help me out with this error please RNFetchblob i have installed and imported successfully also.

import RNFetchBlob from 'rn-fetch-blob';
const downloadImage = () => {
        let date = new Date()
        let image_URL = IMAGE_PATH
        let ext = getExtention(image_URL)
        ext = '.' + ext[0]
        const { config, fs } = RNFetchBlob
        let PictureDir = fs.dirs.PictureDir
        let options = {
            fileCache: true,
            addAndroidDownloads: {
                useDownloadManager: true,
                notification: true,
                path: PictureDir + '/image_' +
                    Math.floor(date.getTime() + date.getSeconds() / 2) + ext,
                description: 'Image'
            }
        }
        config(options)
            .fetch('GET', image_URL)
            .then(res => {
                console.log('res -> ', JSON.stringify(res))
                alert('Image Donwload Successfully')
            })
    }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This issue is solved here in the component documentation [https://github.com/joltup/rn-fetch-blob/issues/422][1]

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!