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

fix loading style in socialicon #52

Merged

Conversation

ankushdutt
Copy link
Contributor

fixes #51

image

@netlify
Copy link

netlify bot commented Mar 13, 2021

Deploy preview for rne-playground ready!

Built with commit c5a3207

https://deploy-preview-52--rne-playground.netlify.app

Copy link
Contributor

@Uyadav207 Uyadav207 left a comment

Choose a reason for hiding this comment

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

Screenshot from 2021-03-13 16-25-00

Problem

  • The icon still shows beside the loading icon.
  • when onLoading: {true} && icon: {true} then icon and blank svg img is visible.

Possible Solution

  • please try to use Conditional Rendering.
  • This can be done using a ternary operator.

@ankushdutt
Copy link
Contributor Author

fixed the loading issue here (react-native-elements/react-native-elements#2846)
Added the activityIndicatorStyle for socialicons to the playground here, so we can merge this one too
@pranshuchittora

@pranshuchittora
Copy link
Member

@ankushdutt thanks for finding the issue and fixing the same in the core.
Is activityIndicatorStyle is a new prop ?

If yes, then pls add the same to the docs (https://github.com/react-native-elements/react-native-elements/tree/next/website/docs/props) so that it can be automatically pulled in the Playground via #15

@ankushdutt
Copy link
Contributor Author

ankushdutt commented Mar 20, 2021

Is activityIndicatorStyle is a new prop ?

No, it was already present in the codebase of React Native Elements Core (I haven't added them in my fix there). Though, its not present in SocialIcon docs

Alright, I'll make a PR for the missing props in the core.

@pranshuchittora
Copy link
Member

Did you made a PR for the activityIndicatorStyle

@ankushdutt
Copy link
Contributor Author

Did you made a PR for the activityIndicatorStyle

Yes, here: react-native-elements/react-native-elements#2946

@flyingcircle flyingcircle merged commit eedf299 into react-native-elements:master Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SocialIcon: original icon is visible when loading
4 participants