File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useState , useEffect } from 'react' ;
2
2
import {
3
- AppRegistry ,
4
3
StyleSheet ,
5
4
View ,
6
5
Text ,
@@ -15,7 +14,7 @@ import {
15
14
Notification ,
16
15
} from '../lib/src' ;
17
16
18
- function NotificationsExampleApp ( ) {
17
+ export default function NotificationsExampleApp ( ) {
19
18
const [ notifications , setNotifications ] = useState < Notification [ ] > ( [ ] ) ;
20
19
const [ openedNotifications , setOpenedNotifications ] = useState < Notification [ ] > ( [ ] ) ;
21
20
@@ -208,5 +207,3 @@ const styles = StyleSheet.create({
208
207
marginBottom : 5 ,
209
208
} ,
210
209
} ) ;
211
-
212
- AppRegistry . registerComponent ( 'NotificationsExampleApp' , ( ) => NotificationsExampleApp ) ;
Original file line number Diff line number Diff line change
1
+ import { AppRegistry } from 'react-native' ;
2
+ import NotificationsExampleApp from './NotificationsExampleApp' ;
3
+
4
+ AppRegistry . registerComponent ( 'NotificationsExampleApp' , ( ) => NotificationsExampleApp ) ;
You can’t perform that action at this time.
0 commit comments