Giter VIP home page Giter VIP logo

Comments (13)

binoy14 avatar binoy14 commented on May 3, 2024 3

You can add loading prop. It's not documented currently but should be

from react-native-elements.

Monte9 avatar Monte9 commented on May 3, 2024 1

@Jeanmsilva89 I really like what you have done with the activity indicators on the button elements. gj!
What other components were you thinking of adding the activity indicator too?

Also I think, as part of your PR you forgot to update the readme with the new button props that you implemented. Feel free to submit a PR for this if you are not busy.

from react-native-elements.

Jeanmsilva89 avatar Jeanmsilva89 commented on May 3, 2024 1

@Monte9 Sorry I have been too busy in the past few weeks, and missed your comment. I'll send a PR for the README by this weekend.

@dekm I'm not using the SearchBar currently but yeah I think it's useful for just about every component that has an onPress event so that a loading state can be added.

from react-native-elements.

binoy14 avatar binoy14 commented on May 3, 2024 1

@Monte9 SearchBar has a activity indicator, was recently added.

I agree with changing socialIcon to Button

from react-native-elements.

dabit3 avatar dabit3 commented on May 3, 2024

I think this would be a great addition for sure! @Jeanmsilva89

from react-native-elements.

Firaenix avatar Firaenix commented on May 3, 2024

I'd love something like this for my project!

from react-native-elements.

Jeanmsilva89 avatar Jeanmsilva89 commented on May 3, 2024

Added pull request #62

from react-native-elements.

Jeanmsilva89 avatar Jeanmsilva89 commented on May 3, 2024

I'd love to add this feature to other components, and I'll have to do it for my own projects so I'll submit another PR soon for that.
@dabit3 Another topic but figured I'd ask you here instead of opening another issue.
Is there a reason for why you decided to create the SocialIcon component from scratch as opposed to building it on top of your button component? In a lot of ways the social media icons are used as buttons and could share lot of the button features.
For example. I just created a branch where I replicated the props. "small, disabled, loading" into the socialIcon component. I initially assumed it was built using the button so I thought it would've just worked.

Btw thanks a lot for this cool project and for you awesome React Native Radio, been really enjoying it big time. Keep up!

from react-native-elements.

dekm avatar dekm commented on May 3, 2024

Would be cool to have this added to the Searchbar as well. I was just trying to look into adding a spinner on the right side of the searchbar as I'm calling search as the user types.

Looks like inside the search component there is only the left icon currently added.

from react-native-elements.

Monte9 avatar Monte9 commented on May 3, 2024

@Jeanmsilva89 any updates?

from react-native-elements.

Monte9 avatar Monte9 commented on May 3, 2024

@binoy14 since we haven't heard from Jean, maybe this is something we can do ourselves. We can talk about what elements it would make sense to add the activityIndicator to.

Also, reading his comment above about SocialIcon not built on top of Button.. it makes sense. I wonder why this is case? Could we possibly refactor?

from react-native-elements.

Monte9 avatar Monte9 commented on May 3, 2024

Closing this issue as PR (#62) has been merged

The Button -> SocialIcon refactor is unrelated to this issue. @binoy14 I'll follow-up with you on this and put it on our TODO list.

from react-native-elements.

jasan-s avatar jasan-s commented on May 3, 2024

How can I add a spinner to a button conditionally ?

from react-native-elements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.