1 Answer
Read moreHow do I open React Native in browser?
Running in the Browser
Read moreHow do I run React Native project?
React Native – Environment Setup
Read moreHow do I add files to React Native app?
Getting started
Read moreHow do you read a file in React Native?
below code is about how to read the file by react-native-fs on RN(React Native) project. … // typescript style import * as RNFS from ‘react-native-fs’; … // readFile(filepath: string, encoding?: string) RNFS. readFile(filePath, ‘ascii’). then(res => { … }) .
Read moreHow do I create a text file in React Native?
Creating File Example : var RNFS = require(‘react-native-fs’); var path = RNFS. DocumentDirectoryPath + ‘/test. txt’; // write the file RNFS.
Read more