diff --git a/docs/apis/AppRegistry.md b/docs/apis/AppRegistry.md index af66e87d..e2ba875d 100644 --- a/docs/apis/AppRegistry.md +++ b/docs/apis/AppRegistry.md @@ -40,6 +40,9 @@ Runs the application that was registered under `appKey`. The `appParameters` must include the `rootTag` into which the application is rendered, and optionally any `initialProps`. +On web, if the `rootTag` is a sub-section of your application it should be +styled as `position:relative` and given an explicit height. + static **unmountApplicationComponentAtRootTag**(rootTag: HTMLElement) To "stop" an application when a view should be destroyed, call diff --git a/src/apis/AppRegistry/AppContainer.js b/src/apis/AppRegistry/AppContainer.js index 8cd1c449..f896ce2a 100644 --- a/src/apis/AppRegistry/AppContainer.js +++ b/src/apis/AppRegistry/AppContainer.js @@ -48,7 +48,7 @@ export default class AppContainer extends Component { render() { return ( - + { resolvedStyle.flexShrink = 0; } if (style.flexBasis == null) { - resolvedStyle.flexBasis = 'auto' + resolvedStyle.flexBasis = 'auto'; } } break;