GithubHelp home page GithubHelp logo

Comments (8)

fssantos avatar fssantos commented on May 14, 2024 4

@tosslee your solution is perfect. I'll just translate it.

如果是跟例子一样用Modal包着ImageView,给onRequestClose传一个函数控制visible属性就行了

Translation: If you're using a <Modal> just pass it onRequestClose props with your control state boolean toggle function.

Example:

//render 
       <Modal visible={this.state.isFullscreen} transparent={true}
          onRequestClose={() => { this.toggleFullscreen(false) }}>{...}</Modal>

  toggleFullscreen = (val) => {
    this.setState((prevState) => ({
      isFullscreen: val
    }))
  }

from react-native-image-viewer.

tosslee avatar tosslee commented on May 14, 2024 3

如果是跟例子一样用Modal包着ImageView,给onRequestClose传一个函数控制visible属性就行了

from react-native-image-viewer.

ascoders avatar ascoders commented on May 14, 2024

这个插件不会干扰监听物理键的,它只会截断作用范围内UI的手势

from react-native-image-viewer.

yuanji123 avatar yuanji123 commented on May 14, 2024

是我的问题

from react-native-image-viewer.

lixj0126 avatar lixj0126 commented on May 14, 2024

是什么问题呢?我也遇到了

from react-native-image-viewer.

aijason avatar aijason commented on May 14, 2024

什么原因?

from react-native-image-viewer.

aijason avatar aijason commented on May 14, 2024

我的安卓点击虚拟返回键没有效果

from react-native-image-viewer.

aijason avatar aijason commented on May 14, 2024

@yuanji123 你是怎么解决的?

from react-native-image-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.