Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: exported Icon component #4014

Merged
merged 3 commits into from
Oct 16, 2023

Conversation

sangamesh1439
Copy link
Contributor

@sangamesh1439 sangamesh1439 commented Aug 3, 2023

Fixes: #3979

Exported Icon component, added example and docs for the same.

Summary

screencapture-localhost-3000-docs-components-Icon-2023-08-03-20_23_02

Test plan

Tested by creating example.

@callstack-bot
Copy link

callstack-bot commented Aug 3, 2023

Hey @sangamesh1439, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@lukewalczak lukewalczak changed the title Feature: Exported Icon Component feature: exported Icon component Aug 4, 2023
@lukewalczak lukewalczak changed the title feature: exported Icon component feat: exported Icon component Aug 4, 2023
@IvanAfonin
Copy link

Love it, please guys review this, super useful

@lukewalczak lukewalczak added the Icon related to internally used icon component based on MaterialCommunityIcons from react-native-paper label Sep 4, 2023
@lukewalczak lukewalczak added this to the 5.11.0 milestone Sep 4, 2023
* export default MyComponent;
* ```
*/

const Icon = ({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add some unit tests for Icon component?


import ScreenWrapper from '../ScreenWrapper';

const IconExample = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's worth to present examples supporting different types values, according to the icons doc

Copy link
Member

@lukewalczak lukewalczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going add unit tests and adjust the example in the follow up PR. Thanks!

@lukewalczak lukewalczak merged commit 8c933fd into callstack:main Oct 16, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Icon related to internally used icon component based on MaterialCommunityIcons from react-native-paper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export Icon component
4 participants