Sfoglia il codice sorgente

Clean up code styles

iou90 4 anni fa
parent
commit
4d9560844c
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      demo/App.js

+ 3
- 3
demo/App.js Vedi File

23
   inlineBodyStyle,
23
   inlineBodyStyle,
24
 } from './config';
24
 } from './config';
25
 
25
 
26
-const onShouldStartLoadWithRequest = result => {
26
+const onShouldStartLoadWithRequest = (result) => {
27
   console.log(result);
27
   console.log(result);
28
   return true;
28
   return true;
29
 };
29
 };
31
 const onError = ({nativeEvent}) =>
31
 const onError = ({nativeEvent}) =>
32
   console.error('WebView error: ', nativeEvent);
32
   console.error('WebView error: ', nativeEvent);
33
 
33
 
34
-const onMessage = event => {
34
+const onMessage = (event) => {
35
   const {data} = event.nativeEvent;
35
   const {data} = event.nativeEvent;
36
   let messageData;
36
   let messageData;
37
   // maybe parse stringified JSON
37
   // maybe parse stringified JSON
44
     const {url} = messageData;
44
     const {url} = messageData;
45
     // check if this message concerns us
45
     // check if this message concerns us
46
     if (url && url.startsWith('http')) {
46
     if (url && url.startsWith('http')) {
47
-      Linking.openURL(url).catch(error =>
47
+      Linking.openURL(url).catch((error) =>
48
         console.error('An error occurred', error),
48
         console.error('An error occurred', error),
49
       );
49
       );
50
     }
50
     }