Closed rleal-dev closed 7 years ago
To change drawer icon to white, follow below steps:
I changed the icon:
private getNavigationButton() {
let navActionItem = new ActionItem();
navActionItem.icon = 'res://ic_menu_white_24dp';
//navActionItem.icon = 'res://ic_menu_black';
if (navActionItem.ios) {
navActionItem.ios.position = 'left';
}
navActionItem.on('tap', this.toggleDrawer.bind(this));
return navActionItem;
}
And placed the icon in the respective folders.
The icon was not visible. Rode the command tns livesync android --emulator --watch
Any other tips?
Once you do any changes in App_Resources folder, you need to build and run the application as livesync will not be able to pick it up.
So instead of livesync
command, execute tns run android
or tns run ios
Worked perfectly.
Thank you very much.
how to add icon to sidebar list
Hello, I'm starting with nativescript, I would like to know how to change the icon from "drawer" to a white background.