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:

Moving Backgrounds With Mouse Position

Let's say you wanted to move the background-position on an element as you mouse over it to give the design a little pizzazz. You have ...