I want add a left image in navigationbar,but it's color become blue my code like this:
return <NavigatorIOS
initialRoute = {{
component:HomeScreen,
title:'test',
leftButtonIcon:require('../img/home_setting_icon.png'),
translucent:false
}}
/>
答案 0 :(得分:0)
In iOS it depends on the bar tint color, set that to the desired one (e.g. purple)
navigationController?.navigationBar.tintColor = .green
For original image color:
someBarButtonItem.image = UIImage(named:"myImage")?.withRenderingMode(.alwaysOriginal)