-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How close Lightbox by click backgound Scene? #2842
Comments
Just some snippet from my code base. First try to wrap the
And insider |
hello
this is my code
|
Any help guys ? Thanks and best regards |
I thought I've made it clear. PanHandlers should works like this:
|
thanks for your reply and im very sorry because im new in RN im sorry but i got this error `Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(SyntaxError in /Users/HMD/Desktop/Mobile-Project/q8hb/src/BaseLightbox.js: /Users/HMD/Desktop/Mobile-Project/q8hb/src/BaseLightbox.js: Unexpected token, expected ... (49:13) (null)) __38-[RCTCxxBridge loadSource:onProgress:]_block_invoke.242 this is the code const { height: deviceHeight, width: deviceWidth } = Dimensions.get('window'); export default class BaseLightbox extends Component { this.state = { _handleStartShouldSetPanResponder = (e: Object, gestureState: Object): boolean => { componentDidMount() { closeModal = () => { _renderLightBox = () => { const styles = StyleSheet.create({ thanks and im so sorry |
|
thnx it work after i forgot to add "panResponder" :) |
@evianzhow The scrolling inside the Lightbox is disabled following this approach. Do you know how to make it work? |
Version
Tell us which versions you are using:
yes
0.52
i used Lightbox to show the image from small to large
but how can i close Lightbox if i click the backgound Scene?
thnx
The text was updated successfully, but these errors were encountered: