Skip to content

alignItems: 'baseline' doesn't work #15858

@erin-noe-payne

Description

@erin-noe-payne

Is this a bug report?

Yes.

Have you read the Contributing Guidelines?

Yes.

Environment

  1. react-native -v: 0.48.1
  2. node -v: v7.9.0
  3. npm -v: 5.4.1
  4. yarn --version: N/A

Then, specify:

  • Target Platform: iOS, Android

  • Development Operating System: macOS Sierra 10.12.5

  • Build tools:
    react-native run-ios
    react-native run-android

Steps to Reproduce

  1. Create a wrapper view with the styles: {flexDirection: 'row', alignItems:'baseline'}
  2. Within the wrapper view, create multiple text nodes with different fontSizes

Expected Behavior

The text nodes would be aligned along the baseline.

Actual Behavior

The text nodes are not aligned along the baseline. The alignment is indistinguishable from alignItems: 'flex-end'
screen shot 2017-09-07 at 2 26 37 pm

Reproducible Demo

https://snack.expo.io/HkoJ_QkcZ

(T16975579)

Metadata

Metadata

Assignees

Labels

Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions