1

I'm trying to import TinyDB in an expo project but I need help with fs, because expo doen't allow fs as it is a third-party file system.

I try using react-native-fs but I don´t kow how to use it. Can someone help me?

This is my Code:

var TinyDB = require('tinydb');
var db = new TinyDB('../UserData.json');

1 Answers1

0

Uninstall react-native-fs and use expo-file-system instead

Abe
  • 4,500
  • 2
  • 11
  • 25