TypeError: StyleSheet.create is not a function
<p>I'm trying to create some styles for my react component like this: </p>

<pre><code>var styles = StyleSheet.create({
 /*Pinout*/

 /*GPIO Shapre*/
 gpio_outer: {
   background: '#222222',
   borderRadius: 5,
   height: 26,
   width: 26,
 },
})
</code></pre>

<p>I'm adding it like 
</p>

<p>After compiling the code and try to run on the browser I get this from the browser console:</p>

<pre><code>TypeError: StyleSheet.create is not a function
</code></pre>

<p>Do you know what can be happening? Thanks in advance</p>