Questions tagged [imagebackground]

78 questions
0
votes
2 answers

Image Background Usage

I am working on a mobile app project with react-native. I got stuck when I was doing the profile screen styling. I want it to look like this image but I can not figure out how to layout the image background and avatar placement like this. If I go…
0
votes
1 answer

Which file to base off of when writing relative path with Bootstrap?

I'm using bootstrap (imported styles using link so don't have a local css file), and am trying to set image as background for a div. The relative path I'm writing doesn't work. I searched online and everyone says to base the relative path off of css…
Ari
  • 153
  • 2
  • 6
0
votes
2 answers

react native ImageBackground not showing on IOS device

I am using the ImageBackground component of react native, but in IOS (device) it is not displaying the image, in the simulator the image appears What can this be? code below: import { ImageBackground } from 'react-native'; const imgSrc =…
0
votes
1 answer

How to set onError on images in react native inside flatlist

I have a page where I list people with their info. I have used Flatlist for rendering the n number of data that I am getting and also for pagination.
Kush
  • 644
  • 1
  • 12
  • 30
0
votes
0 answers

React-Native set local image to background image not working

I have checked other threads and havent found an answer at all.. not one that worked at least. So here is my code: I have tried Image, ImageBackground. I have tried height: '100%', width: '100%' I have tried full uri og imageAdress all the way from…
C-odes
  • 53
  • 1
  • 5
0
votes
2 answers

React Native ImageBackground showing white image only

My ImageBackground module is only showing a white background. The code shown is basically a boilerplate template from React's official documentation on ImageBackgrounds. My uri is not null. "props.route.params.image" is type TakePictureResponse from…
user7842007
0
votes
0 answers

Unicode error when attempting to put an image as the background

I am working on a school project for which I am making a small game using Python. Within python, I am using the Tkinter interface module to give shape to it all. I ran into a problem that I would not know anything about on how to fix it. I am trying…
Beaver
  • 1
  • 5
0
votes
1 answer

How i can randomise my background image React Native

I want to randomise the return of an image in a folder but I have the error 'Invalid call' my function: returnGif = () => { min = Math.ceil(1); max = Math.floor(53); const gifNumber = Math.floor(Math.random() * (max - min +1)) + min; …
0
votes
1 answer

BackgroundImage being pushed up with KeyboardAvoidView on Android with React Native

I want to stop BackgroundImage being pushed when keyboard appears and only the TextInput components and the button should be pushed up. This works fine with the current code on iOS but does not work fine on Android. I have tried with absolute…
Fawad Khalil
  • 161
  • 1
  • 2
  • 11
0
votes
2 answers

React Native Background Image sizing

I am new with react native and I wanted to use ImageBackground. However, when I try to make it display in full screen using the following code: import React from 'react'; import { StyleSheet, ImageBackground,Text, View } from 'react-native'; const…
colla
  • 717
  • 1
  • 10
  • 22
0
votes
1 answer

Image doesn't fit in screen React-native

I have an imagebackground that's working but exceeds in height, I don't know how to make it fit to the screen. In fact, it 'cuts' the top of the image. The original image : my code : …
Kimako
  • 615
  • 2
  • 11
  • 26
0
votes
0 answers

React Native - How do I set the style of a View contained within an ImageBackground so that the View stays contained within the ImageBackground?

i'm building a simple bughouse (4-person chess) game as my first React Native app, and i'm a little confused about a styling issue. the issue occurs when rendering an ImageBackground, which contains a View, which contains a grid of Views (the chess…
0
votes
1 answer

Setting the size in RN's ImageBackground equal to the image used

I'm using ImageBackground from React Native and I'm using a background. I would like to use the size of the background to set the size of the element. Hello…
Franco Petra
  • 688
  • 7
  • 18
0
votes
1 answer

Background image for entire application in ReactNative

In React Native, we have ImageBackground component, that will show the background image in a controller. I want to have same background image for all the controllers. Instead of writing it in all the controllers, is there a way whee I can set the…
Satyam
  • 15,493
  • 31
  • 131
  • 244
0
votes
1 answer

React-Native ImageBackground repeat not working

I started to learn react-native and I encountered a problem. I need an image to repeat in the background but it's streched. It seems the resizeMode is not working. import React, { Component } from 'react'; import { Image, ImageBackground,…
AnthonyDa
  • 493
  • 15
  • 34