Skip to content

Error: Cannot read 'writeToFile' of undefined #6

@kamleshchandnani

Description

@kamleshchandnani

Package is also imported
import FileSystem from 'react-native-filesystem'

console.log('inside file writing', FileSystem)//getting FileSystem here
 let data = yield FileSystem.writeToFile('./productsData', JSON.stringify(productsData.Data))//cannot read writeToFile of undefined

Rebuilt after installng react-native-filesystem. Still no luck! Can somebody help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions