-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #124
- Loading branch information
Showing
9 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react' | ||
import { StyleSheet, View} from 'react-native' | ||
import withCacheBust from './withCacheBust' | ||
import FastImage from 'react-native-fast-image' | ||
import Section from './Section' | ||
import SectionFlex from './SectionFlex' | ||
import FeatureText from './FeatureText' | ||
import LogoImage from './images/logo.png' | ||
|
||
const TintColorExample = ({ onPressReload }) => ( | ||
<View> | ||
<Section> | ||
<FeatureText text="Images with tint color." /> | ||
<FeatureText text="All non-transparent pixels are changed to the color." /> | ||
</Section> | ||
<SectionFlex onPress={onPressReload}> | ||
<FastImage | ||
style={styles.image} | ||
tintColor={'green'} | ||
source={LogoImage} | ||
/> | ||
<FastImage | ||
style={styles.image} | ||
tintColor={'#9324c3'} | ||
source={LogoImage} | ||
/> | ||
<FastImage | ||
style={styles.image} | ||
tintColor={'rgba(0,0,0,0.5)'} | ||
source={LogoImage} | ||
/> | ||
</SectionFlex> | ||
</View> | ||
) | ||
|
||
const styles = StyleSheet.create({ | ||
image: { | ||
flex: 1, | ||
height: 100, | ||
margin: 10, | ||
}, | ||
}) | ||
|
||
export default withCacheBust(TintColorExample) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters