react-native-action-sheet-component icon indicating copy to clipboard operation
react-native-action-sheet-component copied to clipboard

ActionSheet bottom position

Open jamesholcomb opened this issue 7 years ago • 1 comments

Test case using react-native-navbar

  render() {
    return (
      <View style={{ flex: 1, backgroundColor: '#DDDDDD' }}>
        <NavigationBar
          style={{ backgroundColor: '#ABC' }}
          title={{ title: 'Home' }}
          rightButton={{ title: 'Choose', handler: () => this.actionSheet.show() }}
        />
        <ActionSheet
          ref={(actionSheet) => { this.actionSheet = actionSheet }}
          position="bottom"
          onChange={this.onChange}
        >
          <ActionSheetItem
            text="Github"
            value="item1"
            selectedIcon={checkedIcon}
            onPress={this.onItemPress}
          />
          <ActionSheetItem
            text="Facebook"
            value="item2"
            selectedIcon={checkedIcon}
            onPress={this.onItemPress}
          />
        </ActionSheet>
      </View>
    )
  }

When selecting an item the first time, there is still some white overlap from the action sheet at the bottom of the view. But subsequent item selections clear it up.

image

jamesholcomb avatar Apr 17 '17 16:04 jamesholcomb

@jamesholcomb Thanks for reporting the issue. I i will investigate it.

jacklam718 avatar Apr 17 '17 16:04 jacklam718