title: React Native Switch on Android report an error
body: <p>I use a Switch on Android in RN 0.21.0:</p>
  
  <pre><code> &lt;Switch
            onValueChange={(value) =&gt; this.setState({trueSwitchIsOn: value})}           
            value={this.state.trueSwitchIsOn} /&gt;
  </code></pre>
  
  <p>It showes an error:</p>
  
  <pre><code>(standard input):43372:03-03 09:32:02.096 E/unknown:React(11609): Exception in native call from JS
  (standard input):43373:03-03 09:32:02.096 E/unknown:React(11609): java.lang.NullPointerException
  (standard input):43374:03-03 09:32:02.096 E/unknown:React(11609):   at android.text.StaticLayout.&lt;init&gt;(StaticLayout.java:58)
  (standard input):43375:03-03 09:32:02.096 E/unknown:React(11609):   at android.support.v7.widget.SwitchCompat.makeLayout(SwitchCompat.java:606)
  (standard input):43376:03-03 09:32:02.096 E/unknown:React(11609):   at android.support.v7.widget.SwitchCompat.onMeasure(SwitchCompat.java:526)
  (standard input):43377:03-03 09:32:02.096 E/unknown:React(11609):   at android.view.View.measure(View.java:16529)
  (standard input):43378:03-03 09:32:02.096 E/unknown:React(11609):   at com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode.measure(ReactSwitchManager.java:56)
  (standard input):43379:03-03 09:32:02.096 E/unknown:React(11609):   at com.facebook.csslayout.CSSNode.measure(CSSNode.java:137)
  (standard input):43380:03-03 09:32:02.096 E/unknown:React(11609):   at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:294)
  (standard input):43381:03-03 09:32:02.096 E/unknown:React(11609):   at com.facebook.csslayout.LayoutEngine.layoutNode(LayoutEngine.java:210)
  (standard input):43382:03-03 09:32:02.096 E/unknown:React(11609):   at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:492)
  (standard input):43383:03-03 09:32:02.096 E/unknown:React(11609):   at com.facebook.csslayout.LayoutEngine.layoutNode(LayoutEngine.java:210)
  (standard input):43384:03-03 09:32:02.096 E/unknown:React(11609):   at com.facebook.csslayout.LayoutEngine.layoutNodeImpl(LayoutEngine.java:492)
  </code></pre>
  
  <p>So I guess it the measure error and set a size :</p>
  
  <pre><code>  &lt;Switch
                onValueChange={(value) =&gt; this.setState({trueSwitchIsOn: value})}
                style={{width:100, height:40, backgroundColor:'#a03'}}
                value={this.state.trueSwitchIsOn} /&gt;
  </code></pre>
  
  <p>then the error goes away and a blank area showes without the **Switch ** View. </p>