代码之家  ›  专栏  ›  技术社区  ›  Franco Coronel

Share react native未出现在屏幕底部

  •  1
  • Franco Coronel  · 技术社区  · 6 年前

    第一张图片是共享的按钮,与页面上的教程一模一样。

    第二张图片是当我单击share ui组件时发生的事情。

    我该怎么做才能显示底部的共享按钮。 我试过绝对位置和底部0,但按钮消失了。

    enter image description here

    enter image description here

    2 回复  |  直到 6 年前
        1
  •  0
  •   Nunchucks    6 年前

    在集装箱上,试试 flexDirection: 'column', justifyContent: 'flex-end'

        2
  •  0
  •   Franco Coronel    6 年前

    我是用这个图书馆解决的 https://github.com/beefe/react-native-actionsheet 我无法使用react share插件的UI使其工作。因此,我在de action sheet中使用插件的此方法:

       setTimeout(() => {                           
            Share.shareSingle(Object.assign({},shareOptions, {
                 "social": "facebook"
            })).catch(err => console.log(err));
       },300)