question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Icon not showing

See original GitHub issue

I’m trying to use a custom icon for my Toast with BaseToast example code. I tried to search for similar issue but could not find the answer. I’m using react-native-vector-icons/FontAwesome5 as Icon. Thank you

import Icon from 'react-native-vector-icons/FontAwesome5';
....
  <BaseToast
      {...rest}
      style={{borderLeftColor: 'pink'}}
      contentContainerStyle={{paddingHorizontal: 15}}
      text1Style={{
        fontSize: 15,
        fontWeight: '400',
      }}
      text1={text1}
      text2={props.uuid}
      leadingIcon={<Icon name="bell" color="green" size="10" />}
      leadingIconStyle={{color: 'green'}}
      onLeadingIconPress={() => console.log('press')}
    />

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
calintamascommented, Nov 14, 2021

@tommycarpi The prop name is renderLeadingIcon. And yes, you can render any valid React component there

0reactions
tommycarpicommented, Nov 14, 2021

Ouch, missed that! Thank you for the great work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom icons for applications are not showing up on the ...
1) Right-click on the taskbar · 2) Select Task manager · 3) Select more details if not expanded · 4) On the Processors...
Read more >
What If the Custom Folder Icon Does Not Show?
What If the Custom Folder Icon Does Not Show? · Open FolderIco main window. · Add folder which you want to repair. If...
Read more >
Custom icons not showing on the Taskbar - Windows 10 Forums
Custom icons not showing on the Taskbar · Open Settings, and click on the Personalization icon. · Click on Taskbar on the left...
Read more >
Custom folder icon not showing - Apple Community
I'm trying to customize a folder icon by copying the desired image, going to the folder info, selecting the default folder icon and...
Read more >
Custom Icon not showing - Home Assistant Community
Also you can't set an icon to a png image, you can only use the built in Material Design icons (or other icons...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found