imagebackground

React navigation ImageBackground displaying white screen

▼魔方 西西 提交于 2021-01-29 05:22:43
问题 Update: Its my AppNavigator thats causing the problem, if I remove it, it displays the background. How can I use ImageBackground with my AppNavigator : const config = { initialRouteName: "Home", contentOptions: { activeTintColor: "#e91e63", itemsContainerStyle: { // opacity: 1 }, iconContainerStyle: { // opacity: 1 }, itemStyle: { flexDirection: "row-reverse" } }, drawerWidth: 300, drawerPosition: "right", drawerBackgroundColor: "transperent" }; const withHeader = ( screen: Function,

React-Native: Change opacity colour of ImageBackground

半腔热情 提交于 2019-12-07 08:58:41
问题 I have been trying to develop screen mentioned below: For that I have created below component: import React, {Component} from 'react'; import {View, Text, StyleSheet, ImageBackground, Image} from 'react-native'; import Balance from './Balance.js' class AccountHeader extends React.Component{ render(){ return( <ImageBackground source={require('../images/lawrance.jpg')} style={styles.container}> <View style={styles.overlay}></View> <Text style = {[styles.textStyle, {paddingTop: 10}]} >My Account