Search code examples
reactjsreact-nativereact-native-stylesheet

How to change the color of a transparent background image's text in react native?


I have This Image

quran image

And I want it to be something like this

quran image dark

Is that possible to do in react native


Solution

  • Wrap it up in View and add background color style.

    <View style={styles.imageContainer}>
    {...image here}
    </View>
    

    and

    const styles = StyleSheet.create({
        imageContainer: {
            backgroundColor: 'blue'
        }
    })