Comments (9)
This is crazy, but this bug has resurfaced. It happens for me in 3.4.1.
from nativescript-pulltorefresh.
@bradmartin do you agree that this can and should be fixed in the pulltorefresh plugin?
from nativescript-pulltorefresh.
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.
@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.
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.
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.
@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.
@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.
@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)
- Indicator Color HOT 2
- Conditionnnal blocked plugin
- color and backgroundColor property applies to content element GridLayout HOT 1
- Fails to build on Android for Nativescript 6.0.0 HOT 1
- app:runsbg after updating to nativescript 6 HOT 1
- Not working with webview on android, for ios works fine HOT 5
- iOS bounce up on refresh and no animation HOT 10
- Class not found android.support.v4.widget.SwipeRefreshLayout.OnRefreshListener HOT 3
- Android ViewPager2 increased sensitivity HOT 2
- Not working on iOS onLoaded or programmatically HOT 2
- Changelog for 2.0.0 ?
- Wrong version being downloaded by default HOT 2
- exception with version 3 HOT 8
- Cannot read property 'SwipeRefreshLayout' of undefined HOT 2
- How to prevent pull to refresh when dragging down on Google Maps? HOT 1
- Cannot access 'PullToRefresh' before initialization HOT 3
- FR: add api to show refreshing-indicator by script
- NativeScript 7 Support HOT 2
- tns plugin add @nstudio/[email protected] HOT 1
- Move to community HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-pulltorefresh.