Giter Club home page Giter Club logo

Comments (8)

oluwaseye avatar oluwaseye commented on June 1, 2024

The plugin seems throw the exception above and
java.lang.NullPointerException: SimpleDraweeView was not initialized

It seems the latest version does not play well with tns-core-modules v3.** even though it requires it.

In case anyone else runs into the same issue

My solution
NaitveScript 3.2.*
In your project

npm uninstall tns-core-modules --save
tns platform remove android

if you have the latest plugin
tns plugin remove nativescript-fresco

Then install/add the following versions.

npm install [email protected] --save
tns plugin add [email protected]
tns platform add [email protected]

This is what worked. Hope the new version of the plugin gets fixed soon.

from nativescript-fresco.

VladimirAmiorkov avatar VladimirAmiorkov commented on June 1, 2024

Hi @oluwaseye ,

I just update the repositories demo app to the latest deps version (you can see them here) and did manage to run the project without any errors or issues what so ever. Maybe in your project there is a mismatch between nativescript-angular, angular itself and the tns-core-modules which is leading to this error.

Can you try to run the demo app from this repository and see if it runs on your side, you ca n follow this wiki page on how to build the source code and run the demo app.

from nativescript-fresco.

VladimirAmiorkov avatar VladimirAmiorkov commented on June 1, 2024

@oluwaseye What do you mean by

NaitveScript 3.2.*

The latest and current version of NativeScript is 3.1.3 and tns-core-modules is 3.1.1

from nativescript-fresco.

oluwaseye avatar oluwaseye commented on June 1, 2024

@VladimirAmiorkov I meant the latest Nativescript. I'll try the demo app and let you know if it works running the latest tns-core-modules.

from nativescript-fresco.

oluwaseye avatar oluwaseye commented on June 1, 2024

Should have posted this a while back.
@VladimirAmiorkov On a Pure JS Nativescript core project, here's what finally worked when initializing in the app.js file.

application.on("launch", function () {
       fresco.initialize();
 });

and not this, as shown in the README

  application.onLaunch = function (intent) {
        fresco.initialize();
    };

Thanks

from nativescript-fresco.

VladimirAmiorkov avatar VladimirAmiorkov commented on June 1, 2024

from nativescript-fresco.

oluwaseye avatar oluwaseye commented on June 1, 2024

Awesome!. Glad to contribute to the community. Created a pull request with the updated Launch event.

from nativescript-fresco.

VladimirAmiorkov avatar VladimirAmiorkov commented on June 1, 2024

Closing this issue, resolution here

from nativescript-fresco.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.