vitalets / react-native-extended-stylesheet

Extended StyleSheets for React Native
MIT License
2.93k stars 132 forks source link

ReferenceError: Can't find veriable: style #120

Closed detroit007 closed 4 years ago

detroit007 commented 5 years ago

Steps to Reproduce

it's totally not able to find style variable I deleted all of them just until there is only one on the page but still, that one style variable showing error.

Expected Behavior

Actual Behavior

ReferenceError: Can't find veriable: style This error is located at: in App(at renderApplication.js:40) in RCTView (at AppContainer.js:101) in RCTView (at AppContainer.js:119) in AppContainer(at renderApplication.js:39)

Show the code

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

import DefaultInputText from './components/DefaultInputText';

const App: () => React$Node = () => { return (

React Form SUBMIT

); }; const styles = StyleSheet.create({

  contain:  { padding: 20 },

  headText: {
       textAlign: 'center',
       fontSize: 40,
       marginVertical: 20,
       fontWeight: 'bold',
       color: '#0059F2'
  },
  btn: {
       marginTop: 20,
       height: 50,
       borderRadius: 4,
       borderWidth: 1,
       borderColor: 'transparent',
       backgroundColor: '#2196F3'
  },
  btnText: {
       paddingVertical: 12,
       color: 'white',
       fontSize: 18,
       fontWeight: 'bold',
       textAlign: 'center'
  }

});

export default App;

Environment

I am using Ubuntu with Android Studio, how do I style my page now. help!

progsmile commented 5 years ago

@detroit007 try to wipe data from emulator and that start again Seems like it's not library error

stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.