Friday, April 14, 2017

React Native component not visible when rendered inside Navigator


The React Native Component was rendered correctly, but after introducing a navigator, it became invisible.

The solution is to apply a style with "flex:1" to the navigator;

                        style={{flex: 1}}
            initialRoute={ { name: 'UserProfile' } }
            renderScene={ this.renderScene.bind(this) }
             />

No comments:

The Y Combinator (Slight Return)

Tiger got to hunt, Bird got to fly; Lisper got to sit and wonder, (Y (Y Y))? Tiger got to sleep, Bird got to land; Lisper got to tell hims...