DEV Community

rishail
rishail

Posted on

The Development Server Reutrned Error Code 500 React Native

The Development Server Returned Error Code:500 React Native

**App.js
import React from 'react'
import{StyleSheet,Text,View}from 'react-native'
import RegForm from '.app/Components/RegForm'
export default class App extends React.Component{
render(){
return(



)
}
}
const styles=StyleSheet.Create({
container:{
flex:1 ,
justifyContent:'center',
backgroundColor:'#36485f' ,
paddingLeft:60 ,
paddingRight:60 ,
},
})
*
RegForm.js**
import React from 'react'
import{StyleSheet,Text,View,TextInput,TouchableOpacity}from 'react-native'

export default class RegForm extends React.Component{
render(){
return(

Registration


secureTextEntry={true} />



Sign Up


)
}
}
const styles=StyleSheet.Create({
RegForm:{
alignSelf:'strech' ,
},
header:{
fontSize:24 ,
color:'#fff',
paddingBottom:10 ,
marginBottom:40 ,
borderBottomColor:'#199187',
borderBottomWidth:'1',
},
TextInput:{
alignSelf:'strech',
height:40 ,
marginBottom:30 ,
color:'#fff' ,
borderBottomColor:'#f8f8f8',
borderBottomWidth:1 ,
},
button:{
alignSelf:'strech',
alignItem:'center',
padding:20 ,
backgroundColor:'#59cbbd',
marginTop:30 ,
},
btntext:{
color:'#fff',
fontWeight:'bold',

}
})

Top comments (0)