Skip to content
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

How do you setup a background image for the entire app that is shared across different scene #2250

Closed
isAlmogK opened this issue Aug 16, 2017 · 8 comments

Comments

@isAlmogK
Copy link

I'm trying to set a background image for my entire app and it seems that it's not working, is there a way to set a bg image for the entire app that would work across different scenes

@aksonov
Copy link
Owner

aksonov commented Aug 16, 2017

Check #2218

@isAlmogK
Copy link
Author

It's not working, is there a correct way or example?

@aksonov
Copy link
Owner

aksonov commented Aug 18, 2017

Okey, fork and modify Example project to demonstrate the issue.

@aksonov
Copy link
Owner

aksonov commented Aug 23, 2017

Closed due inactivity.

@aksonov aksonov closed this as completed Aug 23, 2017
@isAlmogK
Copy link
Author

@aksonov it doesn't work you don't need to fork an example. Right now I had to set background for each scene.

@aksonov
Copy link
Owner

aksonov commented Aug 23, 2017

Check latest Example project with usage of Overlay - tab1 uses background defined by other scene (#2220 related)

@isAlmogK
Copy link
Author

@aksonov I think you have a mistake you have the following code

<Overlay>
                    <Scene component={BackgroundView} />
                    <Scene
                      key="tab1_1"
                      component={TabView}
                      title="Tab #1_1"
                      onRight={() => alert('Right button')}
                      rightTitle="Right"
                    />
                  </Overlay>

but I don't see BackgroundView component anywhere?

@isAlmogK
Copy link
Author

Never mind I see it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants