Giter VIP home page Giter VIP logo

Comments (9)

davecoffin avatar davecoffin commented on May 27, 2024 3

This is crazy, but this bug has resurfaced. It happens for me in 3.4.1.

from nativescript-pulltorefresh.

davecoffin avatar davecoffin commented on May 27, 2024

@bradmartin do you agree that this can and should be fixed in the pulltorefresh plugin?

from nativescript-pulltorefresh.

bradmartin avatar bradmartin commented on May 27, 2024

Possibly, I'm just not sure right now what the plugin would be doing that would cause it 🤔 if we know what the cause is then fixing here is great. I'm just not sure without more debugging on the issue and limited on time right now :(

from nativescript-pulltorefresh.

bradmartin avatar bradmartin commented on May 27, 2024

@PeterStaev helped with updating the plugin and he might be a little 'fresh' on the specifics of the plugin having recently worked on it. Peter, do you have any idea what would cause the PullToRefresh layout to cause this issue?

from nativescript-pulltorefresh.

PeterStaev avatar PeterStaev commented on May 27, 2024

My guess is this might relate to https://github.com/bradmartin/nativescript-pulltorefresh/blob/master/pulltorefresh-common.ts#L14, where we remember the initial value and then change it back. This was done as far as i remember because when you set the color property of the widget it also changed the color of all the content inside it.

from nativescript-pulltorefresh.

PeterStaev avatar PeterStaev commented on May 27, 2024

I've just did a quick test, and good news is this problem is not present in 2.0.0 version of the plugin and the core 3.0 modules. So my guess is it was a mix of some problem with the 2.5 core modules and how the plugin is implemented.

@davecoffin I would suggest using the workaround that @bradmartin suggested - to define a color property for the label, and then when you upgrade your project to {N} 3.0 to remove that color.

from nativescript-pulltorefresh.

bradmartin avatar bradmartin commented on May 27, 2024

@davecoffin is this better as Peter suggested with 3+? I'm about to implement it in an app so I'll report back if any issue related to this.

from nativescript-pulltorefresh.

davecoffin avatar davecoffin commented on May 27, 2024

@bradmartin I'm not ignoring you, I went to test this yesterday morning which sent me on a wild goose chase fixing android build bugs that I still havent resolved.

from nativescript-pulltorefresh.

felixkrautschuk avatar felixkrautschuk commented on May 27, 2024

@davecoffin @bradmartin
I also get this error using NS 5.2 and the latest version of this plugin.

Surprisingly the error does not occur if I add a color to the Label.

<Label text="Test"/> --> crash
<Label text="Test" color="black"/> --> no crash

from nativescript-pulltorefresh.

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.