react-native-button-component icon indicating copy to clipboard operation
react-native-button-component copied to clipboard

The button is not visible.

Open iicdii opened this issue 9 years ago • 9 comments

I just installed it via npm and run "react-native link" and everything worked fine. and I tried to render this component but it's not visible on the screen. I tried to inspect the component by Toggle Inspector on developer menu but I can't touch anything.

platform

Android, IOS

package version

"react": "15.4.2", "react-native": "^0.42.3", "react-native-button-component": "^0.1.16"

code

import RoundButton from 'react-native-button-component';

...

render() {
  const { err1, err2, orientation } = this.state;

  return (
    <Container style={{ backgroundColor: '#3498db' }}>
      <Content>
        <Grid>
          <Row size={75} style={{ height: orientation === 'PORTRAIT' ? 300 : 130, alignSelf: 'center' }}>
            ...
          </Row>
          <Row size={25}>
            <Content>
              <Form style={{ marginLeft: 10, marginRight: 20 }}>
                ...
                <View>
                  <RoundButton
                    buttonState={this.state.buttonState}
                    backgroundColors={['#212122', '#414141']}
                    text={"Sign In"}
                    onPress={this.handleSubmit.bind(this)}
                  />
                </View>
                ...
              </Form>
            </Content>
          </Row>
        </Grid>
      </Content>
    </Container>
  );
}

I also tried to render outside NativeBase Component(Container, Content) but it still doesn't appear. I tried almost any possible case like removing options, adding width and height, replacing it with other components (ButtonComponent, CircleButton, RectangleButton) but still doesn't work.

iicdii avatar Mar 22 '17 23:03 iicdii

Same here. Shows nothing. I put ButtonComponent between other 2 components, it consumes 0 pixel.

mswokk avatar Mar 23 '17 11:03 mswokk

@iicdii @mswokk So sorry! I'll investigate it. Thank you for reporting this issue.

jacklam718 avatar Mar 24 '17 02:03 jacklam718

+1 to @iicdii 's issue. Same here. Button is not visible at all. Weird.

nishiltamboli avatar Mar 31 '17 15:03 nishiltamboli

@jacklam718 I have same the problem

addieljuarez avatar Apr 24 '17 03:04 addieljuarez

+1

kaloczidev avatar May 03 '17 10:05 kaloczidev

+1

pomeloworkspace avatar May 09 '17 01:05 pomeloworkspace

+1

TGNC avatar May 11 '17 07:05 TGNC

Any updates on this issue? Thanks

kayazinc avatar May 11 '17 09:05 kayazinc

I have fixed the issue in version 0.1.17

jacklam718 avatar May 19 '17 10:05 jacklam718