It works already in 7. But it would be nice to update the demo project and any NS imports to the new paths.
Hi @bufke, could you take a look at this PR? Thanks.
Some good news in the short term, I was able to run this sidedrawer in NativeScript 7 somehow.
Version 8 uses Kotlin and is a major refactor. It doesn't look like NativeScript can support types with Kotlin. So I cannot support it. If anyone has time to help. Otherwise this project is basically dead.
David Burke (3eaf71dd) at 12 Jul 17:59
Update README.md to mention ios does not work according to #7
I don't have access to any hardware to test it on. If someone wants to maintain the ios version please let me know and I can add you here. I haven't touched the ios version since forking this so it's not surprising it doesn't work on modern NS.
Yes, the project demo doesn't work either
I got this error too, tried to comment out this line in the nativescript-foss-sidedrawer source, but there were other broken parts. So I gave up and used modal dialog for navigation on iOS.
MESSAGE ERROR : 'JavaScript error: file:///node_modules/nativescript-foss-sidedrawer/nativescript-sidedrawer.js:85:29 JS ERROR TypeError: undefined is not an object (evaluating 'uitable.separatorStyle = 0')
On android, my 'SideDrawer' works correctly, problem only on IOS.
Has anyone encountered a similar error?
I sent the file to call SideDrawer via attachment
Finally found a way to change title color on Android. Not tested on iOS.
Resolves #6
textColor
option works only for templates. Apparently calling withTextColor(...)
on ProfileDrawerItem
has no effect (tried with MaterialDrawer 6.0.9 and 6.1.2), so the only way to change text color in header is to add custom color to colors.xml
, for example:
<?xml version="1.0" encoding="utf-8"?>
<resources>
...
<color name="material_drawer_primary_text">#F5F5F5</color>
...
</resources>
David Burke (74352540) at 11 Aug 16:59
Merge branch 'title-color' into 'master'
... and 1 more commit
Finally found a way to change title color on Android. Not tested on iOS.
Resolves #6
textColor
option works only for templates. Apparently calling withTextColor(...)
on ProfileDrawerItem
has no effect (tried with MaterialDrawer 6.0.9 and 6.1.2), so the only way to change text color in header is to add custom color to colors.xml
, for example:
<?xml version="1.0" encoding="utf-8"?>
<resources>
...
<color name="material_drawer_primary_text">#F5F5F5</color>
...
</resources>
David Burke (e46e6c1f) at 28 Jul 16:14
Update README.md
I'll note that in the readme.