GithubHelp home page GithubHelp logo

Comments (14)

wootwoot1234 avatar wootwoot1234 commented on June 11, 2024

+1

I'm having the same issue. I would love to have some way to change the width of the buttons.

from react-native-swipeout.

dancormier avatar dancormier commented on June 11, 2024

Hi Yuriy and woot,

I have an update. I'm currently writing an update that should resolve this issue and allow for passing of custom style (including width) to buttons in swipeout.

from react-native-swipeout.

wootwoot1234 avatar wootwoot1234 commented on June 11, 2024

@dancormier thanks for the update. Glad to see you're still working on this library, it's really useful. Thanks!

from react-native-swipeout.

yuriy-vorontsov avatar yuriy-vorontsov commented on June 11, 2024

@dancormier Great to hear it! Thank you!

from react-native-swipeout.

markrickert avatar markrickert commented on June 11, 2024

+1 My ListView isn't the entire width of the screen, so the default button width of width/5 doesn't work. I need a way to explicitly set the button width, or even better: it automatically knows how wide a 1 button swipeout needs to be based on the button itself instead of as a function of the component's width.

from react-native-swipeout.

kesha-antonov avatar kesha-antonov commented on June 11, 2024

Hello @dancormier !
Do you have time? Any progress on this?
I tried to figure out solution myself but not succeeded yet.

from react-native-swipeout.

kesha-antonov avatar kesha-antonov commented on June 11, 2024

Agreed with @markrickert . Great if it would be set automatically.

from react-native-swipeout.

markrickert avatar markrickert commented on June 11, 2024

Also, wondering on the progress of the dc-redux branch, @dancormier. Should we be using that as base for pull requests or master?

from react-native-swipeout.

kesha-antonov avatar kesha-antonov commented on June 11, 2024

screen shot 2016-03-07 at 01 30 44

I have some luck with that. With `flex: 1` in screenshot we have padding from right. Without `flex: 1` we won't have effect of growing buttons

from react-native-swipeout.

kesha-antonov avatar kesha-antonov commented on June 11, 2024

Here's code: https://github.com/kesha-antonov/react-native-swipeout
Hope it can help.

Just add styleButton: { width: 90, backgroundColor: 'rgba(228, 178, 48, 1)' } to <Swipeout right={[...

from react-native-swipeout.

kesha-antonov avatar kesha-antonov commented on June 11, 2024

So guys if you're okay to use it without "growing" effect then you'll be able to set custom widths on right buttons with my fork at this rev: https://github.com/kesha-antonov/react-native-swipeout/tree/b717a0d6ce17699d260951e41b6b603d3b4c5949

And it'll look okay - without padding as above

from react-native-swipeout.

kesha-antonov avatar kesha-antonov commented on June 11, 2024

screen shot 2016-03-08 at 19 30 33

from react-native-swipeout.

jaewonch avatar jaewonch commented on June 11, 2024

@kesha-antonov I am trying to get the row to be swiped all the way, so in order to increase the width of the button to cover the full row when swiped, just for testing, I tried let rightButton = [{styleButton: { width: 100 }}] and <Swipeout right={rightButton} backgroundColor= 'transparent'> but the button is not affected and has the default width. Is this correct way to do it? Is there a better approach?

from react-native-swipeout.

silentcloud avatar silentcloud commented on June 11, 2024

#134

from react-native-swipeout.

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.