@connected-home/react-native-persistent-logger
Getting started
$ yarn add @connected-home/react-native-persistent-logger
Mostly automatic installation
$ react-native link @connected-home/react-native-persistent-logger
iOS
Add
<key>UIFileSharingEnabled</key>
<true/>
to main Info.plist
to enable iTunes file sharing in the app
Usage
import PersistentLogger from '@connected-home/react-native-persistent-logger';
PersistentLogger.init('log_file.txt');
PersistentLogger.log('Something happened');
After this code is executed, a new file in Downloads called log_file.txt
should appear, with the log line inside.