Nativebase: Excess bottom space in the ActionSheet

Created on 5 Mar 2019  路  20Comments  路  Source: GeekyAnts/NativeBase

I have gone through these following points

Issue Description

node, npm, react-native, react and native-base version, expo version if used, xcode version

node: 10.0.0
npm: 5.6.0
react-native: 0.58.5
react: 16.6.3
native-base: 2.12.0

Expected behaviour

No extra space after last item

Actual behaviour

Extra space after last item
screenshot_1551781413

Steps to reproduce

Just adding any normal action sheet is adding extra space after last item.

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

Android

Most helpful comment

Same issue

All 20 comments

Checked with NativeBase 2.12.0, no issues
image
image

@SupriyaKalghatgi Please repeat the same case not different one. As you can see there is no title.

@venkatmithunk You dd'nt mention code snippet in issue description (as per issue template)

@SupriyaKalghatgi

 ActionSheet.show (
      {
        options: [
          {
            text: 'Attach Photo',
            icon: 'ios-folder-open-outline',
          },
          {
            text: 'Take Photo',
            icon: 'ios-camera-outline',
          },
        ],
      },
      buttonIndex => {
        if (buttonIndex === 0) {
          this.pickImage ();
        } else if (buttonIndex === 1) {
          this.openCamera ();
        }
      }
    );

Same problem here. I'm using [email protected]

ActionSheet.show({
            options: [
              {
                text: 'Editar',
                icon: 'create',
                action: () => {},
              },
              {
                text: 'Excluir',
                icon: 'md-trash',
                action: () => deleteAction(transaction),
              },
            ],
          })

But just with more then 2 itens.

@SupriyaKalghatgi Please reopen the issue. please test for two, three, four , five items in action sheet and you will understand.

@SupriyaKalghatgi Any update on this?

Any updates ?

I am also facing the same issue in native-base 2.12.0

Same issue

@SupriyaKalghatgi any updates on this?

Unfortunately not, the issue is still present 馃檨

@SupriyaKalghatgi any updates on this?

I've made a pr that resolves this issue in my app. Testers would be appreciated :D

Screenshot_2019-06-26-11-29-03-593_com hanbiro mailapp
I have same issue in version 2.12.1 but I working normal in version 2.6.1.
This issue very long time. I think we should fix and resolve it.

I've made a pr that resolves this issue in my app. Testers would be appreciated :D

Can you share it?

@TxusBlack I referenced this issue in the PR, so it's linked above, but sure: https://github.com/GeekyAnts/NativeBase/pull/2730

@TomMahle you change this code from height:this.state.items.length*80 to height: "auto" (or your height) in 3 files as picture. Current, I fixed this issue with this solution.
Screen Shot 2019-06-28 at 8 09 03 AM

@TomMahle you change this code from height:this.state.items.length*80 to height: "auto" (or your height) in 3 files as picture. Current, I fixed this issue with this solution.
Screen Shot 2019-06-28 at 8 09 03 AM

Wow! I'll try! 馃槃

I'll make a PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elnygren picture elnygren  路  3Comments

mcpracht picture mcpracht  路  3Comments

Bundas picture Bundas  路  3Comments

muthuraman007 picture muthuraman007  路  3Comments

maphongba008 picture maphongba008  路  3Comments