Skip to content

Fix short text when wrapped with a centered container #2320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

Incubator.TextField - fix short text when wrapped with a centered container

Code example:

import _ from 'lodash';
import React, {Component} from 'react';
import {StyleSheet} from 'react-native';
import {View, Text, Card, TextField, Button} from 'react-native-ui-lib'; //eslint-disable-line

export default class PlaygroundScreen extends Component {
  render() {
    return (
      <View bg-grey80 padding-20 center>
        <TextField
          migrate
          marginT-16
          placeholder="Enter confirmation code"
          floatingPlaceholder={false}
          showCharacterCounter
          centered
          validate={'number'}
          validationMessage={'Blaaa blaa bla'}
          validateOnChange
          maxLength={6}
        />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {}
});

Changelog

Incubator.TextField - fix short text when wrapped with a centered container

@ethanshar ethanshar merged commit d7d413c into master Nov 9, 2022
@M-i-k-e-l M-i-k-e-l deleted the fix/incubator-text-field-short-text-with-a-centered-container branch November 9, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants