Skip to content

Custom local svg is not showing in BotttomNavigation - How to pass it in routes icon #3129

Discussion options

You must be logged in to vote

I solved it using the renderIcon prop, I passed all the icons through a renderIcon function.

const renderIcon = BottomNavigation.SceneMap({ purchases: PurchaseIcon, sales: SalesIcon, tools: ToolsIcon, apps: AppsIcon, settings: SettingsIcon })
Where PurchaseIcon was const PurchaseIcon = () => <PurchasesLogo/> and the others like SalesIcon,..etc was similar to this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Krithik-Shailesh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant