Skip to content

Commit 8dfd564

Browse files
committed
fix: usernameTitle and passwordTitle props are available again. New version: 2.1.3
1 parent 9be1a5b commit 8dfd564

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

lib/components/BottomContainer/BottomContainer.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const BottomContainer = (props: IBottomContainerProps) => {
4444
const {
4545
cardState,
4646
onSignUpPress,
47+
usernameTitle,
48+
passwordTitle,
4749
backgroundColor,
4850
onPressSettings,
4951
disableSettings,
@@ -98,6 +100,7 @@ const BottomContainer = (props: IBottomContainerProps) => {
98100
return (
99101
<View>
100102
<Card
103+
label={usernameTitle}
101104
value={usernameTextInputValue}
102105
placeholder={usernamePlaceholder}
103106
onChangeText={usernameOnChangeText}
@@ -106,6 +109,7 @@ const BottomContainer = (props: IBottomContainerProps) => {
106109
/>
107110
<Card
108111
secureTextEntry
112+
label={passwordTitle}
109113
value={passwordTextInputValue}
110114
placeholder={passwordPlaceholder}
111115
iconComponent={passwordIconComponent || renderPasswordIcon()}

lib/components/Card/Card.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import styles, { _textStyle, _textInputStyle } from "./Card.style";
88

99
export interface ICardProps {
1010
value?: string;
11+
label?: string;
1112
iconComponent?: any;
1213
placeholder?: string;
1314
secureTextEntry?: boolean;
@@ -17,6 +18,7 @@ export interface ICardProps {
1718
const Card = (props: ICardProps) => {
1819
const {
1920
value,
21+
label,
2022
placeholder,
2123
onChangeText,
2224
secureTextEntry,
@@ -30,7 +32,8 @@ const Card = (props: ICardProps) => {
3032
<TextField
3133
{...props}
3234
value={value}
33-
label={placeholder}
35+
label={label}
36+
placeholder={placeholder}
3437
onChangeText={onChangeText}
3538
secureTextEntry={secureTextEntry}
3639
/>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-login-screen",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "Fully Customizable & Ready to use Login Screen for React Native",
55
"keywords": [
66
"login",

0 commit comments

Comments
 (0)