What is the alternative for numberOfLine props for TextInput component for iOS?

  1. SDK Version: 4.13.0
  2. Platforms(Android/iOS/web/all): iOS

What is the alternative for numberOfLine props for TextInput component for iOS? This is the solution I have implemented for now:

minHeight: (Platform.OS === 'ios' && numberOfLines) ? (20 * numberOfLines) : numberOfLines

But this doesn’t translate exactly as the correct height for the given number of lines. Is there a better alternative to this?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.