Hi Everyone,
I’m facing issue regarding ImageBackground not showing background image you can see my code it was working fine before shift to expo ,all other component and functionality of app working pretty much amazing
<ImageBackground
// source={{uri: 'http://i.imgur.com/IGlBYaC.jpg'}}
source={require('.././../assets/img/Background.png')}
style={styles.backgroundImage}
>
<Container>
<Content>
<View style={styles.logoContainer}>
<Image
source={require("./../../assets/img/logo.png")}
style={styles.logo}
/>
</View>
<Form style={styles.formContainer}>
<Item style={styles.formInputContainer}>
<Input
placeholder="your email address"
style={styles.formInput}
onChangeText={userEmail => this.setState({userEmail})}
/>
</Item>
<Item style={styles.formInputContainer}>
<Input
placeholder="your password"
secureTextEntry={true}
style={styles.formInput}
onChangeText={userpassword => this.setState({userpassword})}
/>
</Item>
</Form>
<View style={styles.formContainer}>
<Button block style={styles.loginBtn}
// onPress={()=> {this.props.navigation.navigate("DashboradClockwork")}}
onPress={() => {this.empLogin()}}
>
<Text> LOGIN </Text>
</Button>
<Button transparent style={styles.forgetBtn}
onPress={() =>
{this.props.navigation.navigate("RecoverPass")}
}
>
<Text
style={{color: "#50CEDC"}}
> FORGET PASSWORD ?</Text>
</Button>
</View>
</Content>
{/* footer */}
<Footer style={{backgroundColor: "rgba(0,0,0,0)"}}>
<Button transparent
onPress={()=> {this.props.navigation.navigate("Signup")}}
>
<Text style={{color: "#50CEDC", fontWeight: "bold"}}>
SIGN UP
</Text>
</Button>
</Footer>
</Container>
</ImageBackground>
// Styling
const styles = StyleSheet.create({
backgroundImage: {
flex: 1,
width: '100%',
height: '100%',
backgroundColor: 'transparent'
}
});
I’ve experience with Expo - it’s not first time creating application with expo - so please help if you’re familiar with that kind of issue