Skip to content

Commit

Permalink
fix: Move main-activity request for Android only
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirAmiorkov committed Apr 13, 2018
1 parent 2c9f2d1 commit 0d8f394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/app/app.ts
Expand Up @@ -2,7 +2,6 @@ import "./bundle-config";
import application = require("tns-core-modules/application");
import fresco = require("nativescript-fresco");
application.setCssFileName("./app.css");
require("./main-activity.android.ts");

//partial declaration of Fresco native android class
declare module com {
Expand All @@ -21,6 +20,7 @@ declare module com {


if (application.android) {
require("./main-activity.android.ts");
application.on("launch", (intent) => {
fresco.initialize();
});
Expand Down

0 comments on commit 0d8f394

Please sign in to comment.