Skip to content

iOS : Button size shrink when total rows size is greater than screen size? #102

@omatrot

Description

@omatrot

I have gone through these following points

Issue Description

I have a button that is incorrectly rendered, height is shrunk, text is disappearing.

node, npm, package.json, xcode version

  • Xcode Version 11.3 beta

  • "react-native": "0.59.10"

Expected behaviour

Correct behaviour on both platforms.

Actual behaviour

Button height is reduced on iOS

Steps to reproduce

Render the following:

      <View style={{flex: 1,
    backgroundColor: "#F5FCFF"}}>
        <Grid>
          <Row size={100}>
            <Col>
              <Button style={{backgroundColor: "#ddd",
    borderWidth: 1,
    margin: 40,
    padding: 12,
    borderRadius: 8,
    borderColor: "black"}} onPress={() => {}}>
                <Text style={{ textAlign: "center" }}>Start</Text>
              </Button>
            </Col>
            <Col>
              <View style={{ alignItems: "center" }}>{undefined}</View>
            </Col>
          </Row>
          <Row size={200}></Row>
          <Row size={50}></Row>
          <Row size={150}></Row>
          <Row size={150}></Row>
        </Grid>
      </View>

Is the bug present in both iOS and Android or in any one of them?

This issue is iOS only. Reduce the fixed size of the last row to make the button rendered properly.
IMG_AF111145BA2A-1

Android is fine.
Screenshot_2020-01-07-11-38-11-196_com debugiosbutton

Any other additional info which would help us debug the issue quicker.

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