Skip to content

Input component bottom of letters getting clipped on ios #479

@yang-zhang-work

Description

@yang-zhang-work

Hi I tried using the Input component https://github.com/obytes/react-native-template-obytes/blob/master/src/components/ui/input.tsx

when I add text-lg, I noticed that the bottom of the letters get clipped.

It only happens on ios simulator, it works fine on Android emulator.

I tried a few things but didn't overcome this:

import { router } from 'expo-router';
import React from 'react';
import { View } from 'react-native';

import { Button, Input, Text } from '@/components/ui';

export default function RegisterEmailScreen() {
  const [email, setEmail] = React.useState('');

  const handleSubmit = () => {
    // TODO: Validate email
    // For now, just navigate to verification
    router.push('/register/verify');
  };

  return (
    <View className="flex-1 px-6">
      {/* Header */}
      <View className="py-8">
        <Text className="text-2xl font-bold">What is your email?</Text>
      </View>

      {/* Email Input */}
      <Input
        value={email}
        onChangeText={setEmail}
        placeholder="[email protected]"
        keyboardType="email-address"
        autoCapitalize="none"
        autoComplete="email"
        autoCorrect={false}
        className="border-b border-gray-300 text-lg"
      />

      {/* Submit Button - Fixed to bottom */}
      <View className="mt-auto pb-6">
        <Button
          label="Continue"
          onPress={handleSubmit}
          variant="primary"
          disabled={!email}
        />
      </View>
    </View>
  );
}

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions