Closed afaridanquah closed 5 years ago
Hi @afaridanquah
can you send an example of your code and an image of your files in App_Resources/android
because I just ran an example and it works as expected 😄
Hi @henrychavez, can you please take a look at this repo https://github.com/afaridanquah/ns-tabs
@afaridanquah, as you can see in the examples the .png
, is not necessary, remove that and should be working 👍
That works, thanks @henrychavez.
I am having issues with the plugin on android, Works fine on iOS. I have placed the icons in //res/drawable-{hdpi, mdpi, xhdpi,xxhdpi,xxxhdpi} using the ic_{filename} . I am running ns 5.0 and vue
An uncaught Exception occurred on "main" thread. com.tns.NativeScriptException: Calling js method onCreateView failed
TypeError: Cannot read property 'android' of null File: "file:///data/data/com.zeepay.instntmny/files/app/vendor.js, line: 26355, column: 73
StackTrace: Frame: function:'BottomNavigation.createTabs', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 26355, column: 74 Frame: function:'BottomNavigation.(anonymous function)', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 26368, column: 10 Frame: function:'applyAllNativeSetters', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 59426, column: 22 Frame: function:'initNativeView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 59353, column: 5 Frame: function:'ViewBase.onResumeNativeUpdates', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60461, column: 18 Frame: function:'ViewBase._resumeNativeUpdates', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 59994, column: 12 Frame: function:'ViewBase.onLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 59940, column: 10 Frame: function:'View.onLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 62143, column: 31 Frame: function:'', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60043, column: 20 Frame: function:'ViewBase.callFunctionWithSuper', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60032, column: 5 Frame: function:'ViewBase.callLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60042, column: 10 Frame: function:'ViewBase.loadView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60219, column: 12 Frame: function:'', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 59943, column: 13 Frame: function:'LayoutBaseCommon.eachChildView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 70852, column: 20 Frame: function:'ViewCommon.eachChild', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 61643, column: 10 Frame: function:'ViewBase.onLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 59942, column: 10 Frame: function:'View.onLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 62143, column: 31 Frame: function:'', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60043, column: 20 Frame: function:'ViewBase.callFunctionWithSuper', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60032, column: 5 Frame: function:'ViewBase.callLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60042, column: 10 Frame: function:'ViewBase.loadView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60219, column: 12 Frame: function:'', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 59943, column: 13 Frame: function:'ContentView.eachChildView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 57587, column: 7 Frame: function:'PageBase.eachChildView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 72279, column: 36 Frame: function:'ViewCommon.eachChild', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 61643, column: 10 Frame: function:'ViewBase.onLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 59942, column: 10 Frame: function:'View.onLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 62143, column: 31 Frame: function:'Page.onLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 72411, column: 31 Frame: function:'', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60043, column: 20 Frame: function:'ViewBase.callFunctionWithSuper', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60032, column: 5 Frame: function:'ViewBase.callLoaded', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60042, column: 10 Frame: function:'ViewBase.loadView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60219, column: 12 Frame: function:'ViewBase._addViewCore', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60213, column: 12 Frame: function:'ViewBase._addView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 60192, column: 10 Frame: function:'FragmentCallbacksImplementation.onCreateView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 67281, column: 13 Frame: function:'FragmentClass.onCreateView', file:'file:///data/data/com.zeepay.instntmny/files/app/vendor.js', line: 64876, column: 34