【问题标题】:How can I view the google drive image and video files from the react-native app?如何从 react-native 应用程序查看谷歌驱动器图像和视频文件?
【发布时间】:2019-09-25 14:51:23
【问题描述】:

我想在我的 react native 应用中显示图片,但只知道如何显示来自其他 url 的图片,但不知道如何在我的应用中显示来自驱动器的图像,

  <Image
      style={{width:50, height: 50}}
      source={{uri: 'https://facebook.github.io/react-native/img/tiny_logo.png'}}
   />

上面的代码显示了链接中的图片,但是我怎样才能显示谷歌驱动器中的图片?尝试将可共享链接作为 uri 提供,但没有用。

提前致谢。

【问题讨论】:

    标签: image react-native google-drive-api display react-native-image


    【解决方案1】:
    1. Shift + ctrl + I,同时在 Google Drive 页面上打开图像预览。
    2. Shift + ctrl + c 然后点击图片
    3. 复制检查面板中的网址并作为来源

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-18
      • 1970-01-01
      • 2021-12-16
      • 2021-03-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多