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:

How can you work with a JSON value if you know nothing about it?

I have talked about the difficulty of typing certain JSON values coming from some APIs. The JSON is just very complicated. When I do that,...