Skip to content

Commit ef4cdde

Browse files
authored
back to index js (#814)
1 parent cd323e6 commit ef4cdde

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

example/index.tsx renamed to example/NotificationsExampleApp.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, {useState, useEffect} from 'react';
22
import {
3-
AppRegistry,
43
StyleSheet,
54
View,
65
Text,
@@ -15,7 +14,7 @@ import {
1514
Notification,
1615
} from '../lib/src';
1716

18-
function NotificationsExampleApp() {
17+
export default function NotificationsExampleApp() {
1918
const [notifications, setNotifications] = useState<Notification[]>([]);
2019
const [openedNotifications, setOpenedNotifications] = useState<Notification[]>([]);
2120

@@ -208,5 +207,3 @@ const styles = StyleSheet.create({
208207
marginBottom: 5,
209208
},
210209
});
211-
212-
AppRegistry.registerComponent('NotificationsExampleApp', () => NotificationsExampleApp);

example/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import {AppRegistry} from 'react-native';
2+
import NotificationsExampleApp from './NotificationsExampleApp';
3+
4+
AppRegistry.registerComponent('NotificationsExampleApp', () => NotificationsExampleApp);

0 commit comments

Comments
 (0)