Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 479e41d

Browse files
author
Boris Tacyniak
authored
Merge pull request #1905 from Stanislavja/master
(fix) remove unnecessary imports and extra variables.
2 parents e323504 + bea0e6c commit 479e41d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

index.js

+4-9
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44

55
'use strict';
66

7-
import { AppState } from "react-native";
7+
import { AppState, Platform } from 'react-native';
8+
import { component } from './component';
89

9-
var RNNotificationsComponent = require( './component' );
10-
11-
var RNNotifications = RNNotificationsComponent.component;
12-
13-
let Platform = require('react-native').Platform;
14-
15-
var Notifications = {
16-
handler: RNNotifications,
10+
const Notifications = {
11+
handler: component,
1712
onRegister: false,
1813
onRegistrationError: false,
1914
onNotification: false,

0 commit comments

Comments
 (0)