Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

514
Views
ReferenceError can't find variable : stylesheet

I already imported StyleSheet from react-native

but I got [ReferenceError can't find variable StyleSheet].

I don't know why. Please help me!

I read many stackoverflow posts, they forget to import StyleSheet, View, Text. But I didn't!!

enter image description here

import React from 'react';
import { View, Text, StyleSheet, SafeAreaView } from 'react-native';
import { TouchableOpacity } from 'react-native-web';

const AddNewStamp = () => (
  <View style={styles.container}>
    <Header />

  </View>
);

const Header = () => (
  <SafeAreaView style = {styles.HeaderContainer}>
    <TouchableOpacity>
      <Image 
        source= {'./assets/icon/home_filled.png'}
        style={{ width: 30, heigh: 30}}
      />
    </TouchableOpacity>
    <Text style={styles.HeaderText}>New Stamp</Text>
  </SafeAreaView>  
);

const styles = StyleSheet.create({
  container: {
    marginHorizontal: 10
  },

  HeaderContainer: {
    flexDirection: 'row',
    justifyContent: 'space-betwween',
    alignItems: 'center',
  },

  HeaderText: {
    color: '#fff',
    fontWeight: '700',
    fontSize: 20,
    marginLeft: 25,
  },
});


export default AddNewStamp;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!