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:

Finite-State Machines, Part 1: Modeling with Haskell Data Types

Stateful programs often become complex beasts as they grow. Program state incohesively spread across a bunch of variables, spuriously guar...