Comments (4)
I'll get right on that.
I didn't know that anyone was using this project. May I ask what you are using it for?
from react-native-listener.
Fixed in v1.0.0
.
from react-native-listener.
Thank you!
I'm using it to handle a context menu. I need to detect clicks outside of the menu area in order to close it. React makes it painful to add a full-page overlay high in the DOM tree when the context menu is created in a deeply nested component, and I don't want to listen for clicks on the entire document. Instead I make a full-page overlay that closes the menu on click, then put the menu inside that. NativeListener is used to prevent menu clicks from bubbling up to the overlay and closing the context menu. Probably a cleaner way to go about this, that's the first thing I tried that works.
from react-native-listener.
Very cool. I originally wrote it to allow me to overlay a react component over a non-react html5 video, and the video was hearing all my click events.
from react-native-listener.
Related Issues (13)
- Component has is showing as Unknown using react chrome dev tool
- ContextMenu not registering on Windows HOT 1
- Migrate from React.PropTypes HOT 2
- need to implement componentDidUpdate
- JSFiddle with example is not working
- Adding more events
- Add support for wheel event
- NativeListener doesn't compile to ES5 due to bad static var declaration HOT 1
- What other event listener properties are supported? HOT 1
- Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. HOT 1
- Wrapped NativeListener fails HOT 4
- typescript types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-listener.