Comments (8)
So this line: https://github.com/bradmartin/nativescript-floatingactionbutton/blob/master/fab-common.js#L43. I'll have to find some time to fix this piece, it's not a major issue to fix but I don't have time right now to fix and test.
from nativescript-floatingactionbutton.
Publishing 2.2.6 soon with the fix, it's here https://github.com/bradmartin/nativescript-floatingactionbutton/blob/master/fab-common.js#L43
from nativescript-floatingactionbutton.
@bradmartin We're using the latest version of the plugin and we've got the same issue on Android
Could it be that there is a regression somewhere?
Unable to resume activity {com.chronogolf.booking.chronogolf/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
Calling js method onStart failed
TypeError: Cannot read property 'getVisibility' of null
File: "<embedded>, line: 815, column: 6107
StackTrace:
Frame: function:'View.(anonymous function)', file:'<embedded>', line: 815, column: 6108
Frame: function:'S', file:'<embedded>', line: 1447, column: 13221
Frame: function:'e', file:'<embedded>', line: 1447, column: 12304
Frame: function:'t.onResumeNativeUpdates', file:'<embedded>', line: 2239, column: 12480
Frame: function:'t._resumeNativeUpdates', file:'<embedded>', line: 2239, column: 3637
Frame: function:'t.onLoaded', file:'<embedded>', line: 2239, column: 3145
Frame: function:'View.onLoaded', file:'<embedded>', line: 815, column: 1335
Frame: function:'', file:'<embedded>', line: 2239, column: 3279
Frame: function:'t.eachChildView', file:'<embedded>', line: 2394, column: 2546
Frame: function:'t.eachChild'...
from nativescript-floatingactionbutton.
Could be, not sure. I have the FAB in multiple apps in production on app stores and haven't had this crash occur. So I'm really not sure. Do you know what file is referenced by the <embedded>
tag in the exception?
from nativescript-floatingactionbutton.
I don't know what the <embedded>
tag refers to.
Fab button is included on my homepage and it looks like that:
<GridLayout column="*" rows="*">
<GridLayout row="0" columns="*", rows="*, auto">
<ScrollView row="0">
[....]
</ScrollView>
</GridLayout>
<FAB
*ngIf="user?.id"
row="0"
[class.no-margin]="FABNoMargin"
(tap)="goToBookingWidget()"
icon="res://ic_add_white"
backColor="#159c28"
rippleColor="#e2f2e6"
class="fab-action">
</FAB>
</GridLayout>
from nativescript-floatingactionbutton.
from nativescript-floatingactionbutton.
I can't always reproduce it in local. The issue is raised in Sentry for an app I just released last week.
I'll try to dig into that way. Thanks for the feedback 👍
from nativescript-floatingactionbutton.
Cool, keep me posted. Just a guess that when the ngIf
is determining to show or not (visibility) it's not happening at the right time. If you keep having issues, it might be worth mentioning this on the NS core repo to see if they have an idea but they'll prob need a better stacktrace with out the <embedded>
tag. I wonder if that's from webpack/uglify on a release build.
As a quick test, I'd try using the NS visibility
instead of ngIf and see if that helps any. If so then the core team should have an idea on a correct fix or someone more knowledgable about angular than I 😄
from nativescript-floatingactionbutton.
Related Issues (20)
- Can I remove padding around icon? HOT 1
- Calling js method onCreateView failed HOT 2
- Error when adding the plugin HOT 1
- JS: topmost() is deprecated. Use Frame.topmost() instead. HOT 2
- How to use svg images HOT 2
- Fab is not showing when scroll completes HOT 1
- text is not working. HOT 6
- loadFromFontIconCode() is deprecated HOT 4
- Adapt icon to screen HOT 10
- Styles not applied on app build for production HOT 2
- FAB 2.0.1: font icons have different sizes on different screens HOT 1
- Crash in flexbox-layout.android.js - Right-hand side of 'instanceof' is not an object HOT 5
- NativeScript 7 update HOT 1
- Could not load view for: Fab.ReferenceError: NativeClass is not defined when used with {N} 7 with angular HOT 12
- FAB.TypeError: core_1.Property is not a constructor HOT 5
- Changing color to text does not work HOT 6
- Display the action items when Fab Button is clicked - Nativescript7 Angular10 HOT 3
- @nativescript/core still imported for lower version than NS7
- icon appearing bigger and cannot be resized HOT 2
- App is crashing on NS Angular
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-floatingactionbutton.