Comments (2)
Note that I also tried your example that uses linear-gradient
and none of the colors appeared:
function Button() {
return (
<AwesomeButton
ExtraContent={
<LinearGradient
colors={["#4C63D2", "#BC3081", "#F47133", "#FED576"]}
/>
}
>
<Text>Instagram</Text>
</AwesomeButton>
);
}
from react-native-really-awesome-button.
I put it inside and didn't use ExtraContent. Did you find any solution?
<AwesomeButtonRick > <LinearGradient colors={["#4C63D2", "#BC3081", "#F47133", "#FED576"]}> <Text style={{ fontSize: 18, fontFamily: 'Gill Sans', textAlign: 'center', margin: 10, color: '#ffffff', backgroundColor: 'transparent', }}> Instragram </Text> </LinearGradient> </AwesomeButtonRick>
other :
style={{...StyleSheet.absoluteFillObject}} in LinearGradient
<LinearGradient style={{...StyleSheet.absoluteFillObject}} start={{ x: 0.0, y: 0.25 }} end={{ x: 0.5, y: 1.0 }} colors={["#4C63D2", "#BC3081", "#F47133", "#FED576"]} />
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
- Button fires on swiping HOT 4
- Web platform not support do to use of depreciated ViewPropTypes HOT 1
- 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.