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

Modal shouldn't cover the Element inspector #8193

Closed
mkonicek opened this issue Jun 17, 2016 · 10 comments · May be fixed by hixio-mh/react-native#30
Closed

Modal shouldn't cover the Element inspector #8193

mkonicek opened this issue Jun 17, 2016 · 10 comments · May be fixed by hixio-mh/react-native#30
Labels
Good first issue Interested in collaborating? Take a stab at fixing one of these issues. Help Wanted :octocat: Issues ideal for external contributors. Resolution: Locked This issue was locked by the bot.

Comments

@mkonicek
Copy link
Contributor

mkonicek commented Jun 17, 2016

When the Element inspector is shown and a <Modal> is rendered at the same time, the Modal covers the Element inspector. This shouldn't be the case :)

Experience required: JS.

@mkonicek mkonicek added Help Wanted :octocat: Issues ideal for external contributors. TLV Hack labels Jun 17, 2016
@Ehesp
Copy link
Contributor

Ehesp commented Jun 17, 2016

The modal covers everything for me, can't even access the dev menu.

@frantic frantic added the Good first issue Interested in collaborating? Take a stab at fixing one of these issues. label Jun 17, 2016
@frantic
Copy link
Contributor

frantic commented Jun 17, 2016

We've fixed this internally, should be a trivial fix in OSS. The idea is to wrap the content of the modal into <AppContainer> that provides all development level tools – inspector, yellow box, etc.

image

@mkonicek
Copy link
Contributor Author

mkonicek commented Jun 17, 2016

@frantic Oh cool, so the Modal effectively renders the YellowBox and the Modal's children:
https://github.com/facebook/react-native/blob/master/Libraries/ReactIOS/AppContainer.js

@mkonicek
Copy link
Contributor Author

mkonicek commented Jun 17, 2016

The modal covers everything for me, can't even access the dev menu.

@Ehesp I created a separate issue for this: #8187. The trick with AppContainer might not be enough for the dev menu being behind Modal. We might need changes in native for that one (at least on Android).

@mkonicek
Copy link
Contributor Author

@frantic Can you explain this a bit more please? Did you mean <Modal> should render an <AppContainer> by default?

@BilalBudhani
Copy link

@frantic I'm looking into this issue as well. It would be great if you can explain a bit more.

@aakashsigdel
Copy link

@mkonicek as mentioned by @frantic, wrapping the contains of the modal in AppContainer does seem to solve the problem. Could you please tell me what is the status on this issue? Should I open a PR for this?

@satya164
Copy link
Contributor

@aakashsigdel Yeah, would be cool if you can send a PR.

@aakashsigdel
Copy link

@satya164 I tried to include the master branch as dependency in my project, but it fails with "Requiring unknown module "react/lib/ReactPropTypesSecret".

I followed the guide from the docs: Building React Native from source
https://facebook.github.io/react-native/docs/android-building-from-source.html

Is there something I am missing?

@christopherdro
Copy link
Contributor

Fixed via 05de4db

@facebook facebook locked as resolved and limited conversation to collaborators Jul 19, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Good first issue Interested in collaborating? Take a stab at fixing one of these issues. Help Wanted :octocat: Issues ideal for external contributors. Resolution: Locked This issue was locked by the bot.
Projects
None yet
9 participants