Skip to content

Commit

Permalink
More customization
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Dec 12, 2019
1 parent 4b6f653 commit b2ec09d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion lib/src/components/BottomContainer/BottomContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ const BottomContainer = props => {
const {
switchText,
switchValue,
passwordTitle,
usernameTitle,
backgroundColor,
switchTextStyle,
usernamePlaceholder,
passwordPlaceholder,
onSwitchValueChange,
usernameOnChangeText,
passwordOnChangeText,
Expand All @@ -22,7 +26,9 @@ const BottomContainer = props => {
<View style={container(backgroundColor)}>
<View style={styles.containerGlue}>
<Card
title={usernameTitle}
value={usernameTextinputValue}
placeholder={usernamePlaceholder}
onChangeText={usernameOnChangeText}
iconComponent={usernameIconComponent}
{...props}
Expand All @@ -32,8 +38,9 @@ const BottomContainer = props => {
secureTextEntry
title="Password"
type="FontAwesome"
title={passwordTitle}
value={passwordTextinputValue}
placeholder="Your Password"
placeholder={passwordPlaceholder}
onChangeText={text => passwordOnChangeText(text)}
iconComponent={passwordIconComponent}
{...props}
Expand Down Expand Up @@ -61,6 +68,10 @@ BottomContainer.propTypes = {

BottomContainer.defaultProps = {
switchText: "Remember me",
usernameTitle: "Username",
passwordTitle: "Password",
usernamePlaceholder: "Your Username",
passwordPlaceholder: "Your Password",
backgroundColor: "rgba(255,255,255,0.45)"
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-login-screen",
"version": "0.2.0",
"version": "0.2.1",
"description": "Fully Customizable & Ready to use Login Screen for React Native",
"keywords": [
"login",
Expand Down

0 comments on commit b2ec09d

Please sign in to comment.