Taimoor Khan Taimoor Khan - 8 months ago 76
Android Question

undefined is not an object (evaluating '_reactNative.Stylesheet.create')

I am getting is pesky error 'undefined is not an object (evaluating '_reactNative.Stylesheet.create')' as can be seen in the screenshot as well. enter image description here

Following is the code I am using;

import React, {Component} from 'react';
import {Text, Stylesheet} from 'react-native';
import {Content, Container, Body, Title} from 'native-base';
import GoogleStaticMap from 'react-native-google-static-map';

export default class Contact extends Component {
render() {
return (
width: 300,
height: 550

const styles = Stylesheet.create({
map: {
width: 300,
height: 550

module.export = Contact;

Answer Source

Use StyleSheet with upper case on Sheet.

import {Text, StyleSheet} from 'react-native';
const styles = StyleSheet.create({
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download