I was trying to create a login page using react native and native-base. I did follow the instructions from the docs but I still got an error in my coding, Would you guys help me to find where I made wrong at? Thx
Here is my code:
import React, { Component } from "react";
import { View, StatusBar } from "react-native";
import {
Container,
Content,
Form,
Item,
Input,
Label,
Button,
Text
} from "native-base";
class Customerlogin extends Component {
render() {
return (
<Container>
<View>
<StatusBar backgroundColor="#EE5FD6" barStyle="light-content" />
</View>
<Content>
<Form>
<Item floatingLabel>
<Label> Username </Label> <Input />
</Item>
<Item floatingLabel last>
<Label> Password </Label> <Input />
</Item>
</Form>
<Button rounded warning>
<Text> Sign In </Text>
</Button>
</Content>
</Container>
);
}
}
export default Customerlogin;
Thx b4.