Skip to content

BackgroundImage support or importing replace #652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cherniv opened this issue Sep 19, 2017 · 1 comment
Closed

BackgroundImage support or importing replace #652

cherniv opened this issue Sep 19, 2017 · 1 comment

Comments

@cherniv
Copy link

cherniv commented Sep 19, 2017

Do you want to request a feature or report a bug?
Feature

What is the current behavior?

Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

React Native 0.48 now has two components for images: Image and BackgroundImage.
React-native-web 0.125 doesnt have BackgroundImage, so <BackgroundImage ... > obviously doesnt work.
How can i solve it on the settings level, may be replace/redirect it with Image by Babel or Webpack somehow?

@necolas
Copy link
Owner

necolas commented Sep 19, 2017

ImageBackground was only recently added to React Native. I've included it in the components backlog #91 to add here

@necolas necolas closed this as completed Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants