Skip to content

Commit

Permalink
back to index js (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielEliraz authored Feb 14, 2022
1 parent cd323e6 commit ef4cdde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions example/index.tsx → example/NotificationsExampleApp.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, {useState, useEffect} from 'react';
import {
AppRegistry,
StyleSheet,
View,
Text,
Expand All @@ -15,7 +14,7 @@ import {
Notification,
} from '../lib/src';

function NotificationsExampleApp() {
export default function NotificationsExampleApp() {
const [notifications, setNotifications] = useState<Notification[]>([]);
const [openedNotifications, setOpenedNotifications] = useState<Notification[]>([]);

Expand Down Expand Up @@ -208,5 +207,3 @@ const styles = StyleSheet.create({
marginBottom: 5,
},
});

AppRegistry.registerComponent('NotificationsExampleApp', () => NotificationsExampleApp);
4 changes: 4 additions & 0 deletions example/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {AppRegistry} from 'react-native';
import NotificationsExampleApp from './NotificationsExampleApp';

AppRegistry.registerComponent('NotificationsExampleApp', () => NotificationsExampleApp);

0 comments on commit ef4cdde

Please sign in to comment.