We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c4ed94 commit d668099Copy full SHA for d668099
example/src/App.tsx
@@ -1,4 +1,4 @@
1
-import React from 'react';
+import React, { useEffect } from 'react';
2
import { StyleSheet, Text, View, Button } from 'react-native';
3
4
import {
@@ -21,6 +21,19 @@ const App = () => {
21
{ peerId: string; rootCid: string; private_ref: string } | {}
22
>({});
23
24
+ useEffect(() => {
25
+ if (!__DEV__) {
26
+ console.log = () => null;
27
+ //console.error = () => null
28
+ }
29
+ fula
30
+ .registerLifecycleListener()
31
+ .then(() => console.log('Lifecycle listener registered'))
32
+ .catch((error) =>
33
+ console.error('Failed to register lifecycle listener', error)
34
+ );
35
+ }, []);
36
+
37
let RNFS = require('react-native-fs');
38
const readFile = () => {
39
RNFS.readDir(RNFS.DocumentDirectoryPath)
0 commit comments