Comments (4)
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.
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.
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.
for example:
<TouchableOpacity onPress={() => {
// your code here
}}>
<AwesomeButton>
{/* your code here */}
</AwesomeButton>
</TouchableOpacity>
from react-native-really-awesome-button.
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.
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)
- is onPress memoized? HOT 17
- Crashes on Android HOT 1
- cannot read properties of undefined reading psbcr
- buttons are pressed on scroll HOT 4
- Progress Loading Time
- The expo demo is outdated and doesn't work HOT 1
- fontFamily or textFontFamily? HOT 1
- "onPress" event only fired when I hold the button and not when touched HOT 13
- Expo needs update please HOT 1
- add support for hitSlop HOT 1
- Buttons unresponsive in Expo SDK 39 HOT 1
- Hair trigger when overlaying other button
- Web platform not support do to use of depreciated ViewPropTypes HOT 1
- Problem with the colors? HOT 2
- A document problem HOT 1
- Transparent picture button HOT 1
- [ Feature ] add sound to the button
- is there a Input component with the same animations/styles/borderBottom 3d effect ?
- [Question] expose onPressOut method HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-really-awesome-button.