diff --git a/example/App.js b/example/App.js
index e62b2b2f..371c4c9a 100644
--- a/example/App.js
+++ b/example/App.js
@@ -15,6 +15,7 @@ import {
ScrollView,
View,
DeviceEventEmitter,
+ SafeAreaView,
} from 'react-native';
import PushNotificationIOS from '../js';
@@ -133,6 +134,9 @@ export const App = (): React.Node => {
threadId: 'thread-id',
fireDate: new Date(new Date().valueOf() + 2000),
repeats: true,
+ userInfo: {
+ image: 'https://www.github.com/Naturalclar.png',
+ },
});
};
@@ -318,70 +322,83 @@ export const App = (): React.Node => {
};
return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PushNotificationIOS.setApplicationIconBadgeNumber(42)
+ }
+ label="Set app's icon badge to 42"
+ />
+ PushNotificationIOS.setApplicationIconBadgeNumber(0)}
+ label="Clear app's icon badge"
+ />
+
+
+
+ {JSON.stringify(permissions)}
+
+
+
+
);
};
const styles = StyleSheet.create({
+ background: {
+ backgroundColor: '#F5FCFF',
+ },
+ flex: {flex: 1},
container: {
flexGrow: 1,
backgroundColor: '#F5FCFF',