Coder Social home page Coder Social logo

Comments (4)

Arcalise08 avatar Arcalise08 commented on May 18, 2024 6

Hey there guys! This seems like a dead repo! I just thought you guys would want to know I did fix many of its various problems including the ones I mentioned here and several mentioned throughout the repo. I went ahead and updated with the new pressable component in react native as well.

Heres the fork. Enjoy!

Any further issues i have no problem taking a look at it, as i'm using this in my active projects so it'll be good to figure out issues before they arise!

from react-native-really-awesome-button.

Arcalise08 avatar Arcalise08 commented on May 18, 2024

Hey guys one last mention! You have to be running react native 0.63 (the newest version) to use my fork! You will get errors if you dont!!

If you cant use RN .63 you can always fork my release and change the component back to TouchableWithoutFeedback, It works. ALMOST just as well. Just some bugfixes that were never sorted out with that one.

from react-native-really-awesome-button.

coldSeattle avatar coldSeattle commented on May 18, 2024

I fixed that problem without any forks.

If you do not need onPress prop on AwesomeButton, You can handle onPress on TouchableOpacity and wrap that one in it.
image

for example:

 <TouchableOpacity onPress={() => {
               // your code here
         }}>
                 <AwesomeButton>
                      {/* your code here */}
                </AwesomeButton>
</TouchableOpacity>

from react-native-really-awesome-button.

Arcalise08 avatar Arcalise08 commented on May 18, 2024

I fixed that problem without any forks.

If you do not need onPress prop on AwesomeButton, You can handle onPress on TouchableOpacity and wrap that one in it.
image

for example:

 <TouchableOpacity onPress={() => {
               // your code here
         }}>
                 <AwesomeButton>
                      {/* your code here */}
                </AwesomeButton>
</TouchableOpacity>

That isn't a fix. Its a workaround. Awesome button also utilizes as touchablewithoutfeedback so at best that workaround is doubling the listeners for every button. I wouldn't advise it personally as it's not a very clean solution. But to each their own. I'm closing this issue now as there is both a fix(using the fork) and a workaround available.

Have a great day!

from react-native-really-awesome-button.

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.