Skip to content

Commit ceb4a2d

Browse files
committed
removed PushNotification.tsx for native/common and changed android and ios index files to import react-native-push-notification. also updated the build script
1 parent c78f6a1 commit ceb4a2d

4 files changed

Lines changed: 3 additions & 69 deletions

File tree

index.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var PushNotification = require('./dist/native-common/PushNotification');
3+
var PushNotification = require('react-native-push-notification');
44

55
module.exports = {
66
PushNotification

index.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var PushNotification = require('./dist/native-common/PushNotification');
3+
var PushNotification = require('react-native-push-notification');
44

55
module.exports = {
66
PushNotification

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
"author": "Andrew Perdec <aperdec@gmail.com>",
66
"license": "MIT",
77
"scripts": {
8-
"build": "npm run tslint && tsc"
8+
"build": "tsc"
99
},
1010
"dependencies": {
1111
"react-native-push-notification": "^3.0.2",
1212
"reactxp": "latest"
1313
},
1414
"devDependencies": {
15-
"@types/react-native-push-notification": "^3.0.2",
1615
"typescript": "^2.4.1"
1716
}
1817
}

src/native-common/PushNotification.tsx

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)