سلام استاد وقتتون بخیر
چطوری باید اینو ساخت ؟
وقتی که با یه تلفن و پسوورد وارد اپلیکیشن میشی و خارج میشی برمیگردی صفحه لاگین میزنی رو input اون تلفن و پسوورد رو به این صورت بالای کیبورد بهت نشون میده و روش که میزنی خودکار تلفن و رمز با مقادیرش پر میشن
درسته استاد گفته خودش پیش فرض میاره
من از content-type هم استفاده کردم ولی کلا اون قسمت رو نمیاره
در گوشی فیزیکی تست کردی ؟ یا تنها مجازی ساز ؟
در هر دو
کلا اون قسمت بالای کیبورد رو اصلا نمیاره
کد من :
<KeyboardAvoidingView>
<View
style={{
marginHorizontal: SIZES.padding * 2,
}}>
{/* phone */}
<View style={{marginTop: SIZES.radius }}>
<Text style={{color: COLORS.white, ...FONTS.body3}}>
{t('phoneLable')}
</Text>
<TextInput
style={{
// marginVertical: SIZES.base,
borderBottomColor: COLORS.white,
borderBottomWidth: 1,
width:'95%',
color: COLORS.white,
...FONTS.h0Mix,
textAlign:'left'
}}
textContentType={'telephoneNumber'}
// autoCompleteType={'username'}
// importantForAutofill={'yes'}
maxLength={11}
keyboardType={'phone-pad'}
placeholderTextColor={COLORS.white}
selectionColor={COLORS.white}
onChangeText={(text) => setPhone(text)}
value={phone}
/>
</View>
{/* Password */}
<View style={{marginTop: SIZES.radius}}>
<Text style={{color: COLORS.white, ...FONTS.body3}}>
{t('enterPassword')}
</Text>
<TextInput
style={{
borderBottomColor: COLORS.white,
borderBottomWidth: 1,
color: COLORS.white,
...FONTS.h0Mix,
textAlign:I18nManager.isRTL?'right':'left'
}}
textContentType={'password'}
// autoCompleteType={'password'}
// importantForAutofill={'yes'}
placeholderTextColor={COLORS.white}
onChangeText={(text) => setPass(text)}
value={pass}
selectionColor={COLORS.white}
secureTextEntry={!showPassword}
/>
<TouchableOpacity
style={{
position: 'absolute',
right: 0,
//left:I18nManager.isRTL?0:null,
bottom: 10,
height: 30,
width: 30,
}}
onPress={() => setShowPassword(!showPassword)}>
<Image
source={showPassword ? icons.eye : icons.disable_eye}
style={{
height: 20,
width: 20,
tintColor: COLORS.white,
}}
/>
</TouchableOpacity>
</View>
</View>
</KeyboardAvoidingView>
اسکرین شات از صفحه موبایل :
https://github.com/software-mansion/react-native-screens/issues/349#issuecomment-721210752
نمیدونم چرا ولی داخل scroolView که گذاشتم درست شد استاد
مرسی از پاسخگوییتون
خیلی هم عالی
خواهش میکنم