作为问题,对于使用gobase in firebase登录需要设置google-service但是如果使用create-react-native-app创建新的react-native项目则不会有"android"或"ios"文件夹(接受使用"弹出" ")所以,有人对我有建议吗?但是我也不知道如何在我的项目中设置google-service(甚至我"弹出"项目).
google-authentication firebase google-play-services expo create-react-native-app
或者实际上问题应该是
如何使用Reactjs和Nodejs将数据写入JSON文件
我是第一个做出反应的人,不了解应该与哪个数据库一起使用。
PS。可以轻松读取json文件
var data = require('./data.json');
但是要写数据,我尝试使用npm'jsonfile '包,并且都尝试使用Nodejs并收到此错误
TypeError: fs.writeFileSync is not a function