Comments (5)
@chirag04 Any chance to look into this?
from react-native-tooltip.
@eyaleizenberg did you find a solution for this? I have the exact same problem i have a list view with chat messages in it and while the keyboard is open i want to open the tooltip menu to offer some options like copy the chat message but that makes the text input field loose the focus and then the keyboard closes and the tooltip is hanging around in the middle of the screen :D
from react-native-tooltip.
@wwwdata Nope sorry.
from react-native-tooltip.
I did a little research and at least I think I know why this happens now. When the UIMenuController
is displayed, it dispatches (inside Xcode implementation) an event to become the first responder. This first responder logic also applies for TextInput fields and when they are the first responder, they display the keyboard. So if you take that away from the TextInput field, it will hide the keyboard.. see apple docs: https://developer.apple.com/documentation/uikit/uiresponder
Now I just need to find out how to get around that because this is also made in other chat apps like Telegram. So I guess I have to do something in XCode to open the menu without it being the first responder?
from react-native-tooltip.
There are some crazy workarounds that involve subclassing the UITextField
just to avoid handling the event.. @chirag04 do you have any idea how this could be achieved in react native in a sane and easy way? Or can this hack described here also somehow be applied to this plugin? https://stackoverflow.com/questions/13601643/uimenucontroller-hides-the-keyboard
from react-native-tooltip.
Related Issues (20)
- callback for dismissing HOT 1
- Android support HOT 6
- Does not work when used over WebView. HOT 5
- can't run HOT 3
- Selected Text
- Undefined is Not an Object('evaluating ToolTipMenu.Show') HOT 5
- onLayout prop is missing x,y in callback's e.nativeEvent.layout
- Copy item added when tooltip is inside of a Text component HOT 1
- Please specify compatible version for Reac-native version
- Replace React.createClass with createReactClass (react 15.5+) HOT 3
- React.PropTypes is removed in RN 0.49 HOT 1
- Collaborators
- Tooltip style change. HOT 1
- Error: Invariant Violation, Native component does not exist HOT 4
- Please support Android HOT 2
- Can I order the position of each item inside the menu?
- with big tetxt
- Tooltip disappearing after first tap HOT 2
- Links in the installation aren't working
- TypeError: undefined is not an object (evaluating 'Object.keys(_reactNative.TouchableHighlight.propTypes)')
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-tooltip.