Comments (6)
React does intercept remote events, in RCTTVRemoteHandler.m
. You might need to modify that file in order to allow your search controller to get the events.
from react-native-tvos.
@keshavkaul were you able to resolve this issue?
from react-native-tvos.
@dlowder-salesforce No, I didn't find time to resolve this, but I implemented a quick fix to natively present a search controller as a modal instead of embedding the controller in react native view
from react-native-tvos.
I'm facing the same issue, but I can't figure out how to avoid RCTTVRemoteHandler.m
from intercepting remote events just for the search controller. Has anybody integrated successfully the search bar? Is there a work-around besides showing it as a modal?
from react-native-tvos.
Hi, we also have UISearchController
used in our project and had issues mostly with remote with touch.
Sometimes touch event (gestures) were not propagated to the keyboard.
After dubugging it found out that there is a RCTTouchHandler
registered in React/Base/RCTRootContentView.m
so basically 2 gesture handlers were registered and the one useful for mobiles was preventing gesture handling.
RCTTouchHandler
has internally a function canBePreventedByGestureRecognizer
which was returning true in our case.
The RCTTVRemoteHandler .m
already has gesture handler implementation so in case of RCTRootContentView
we just skip to register the RCTTouchHandler
if TV device.
from react-native-tvos.
@zsoltbokor if you are using recent RNTV (0.72 latest, or 0.73), the RCTTouchHandler
has been removed for Apple TV, see #601 .
from react-native-tvos.
Related Issues (20)
- Undefined symbol: _RCTTVNavigationEventNotificationName HOT 3
- Focus navigation been disabled after close modal by click 'Menu' at tvos HOT 7
- Every time when I need to find this repo I confused by search result, why title is "files" HOT 1
- After upgrading from 0.66 to 0.73.6 i am getting build error on tvos 'React/RCTTVView.h' file not found HOT 4
- [Apple TV] TVFocusGuide autofocus API not working with bridgeless
- [Apple TV] TVTextScrollView is scrollable when scrollEnabled={false} HOT 1
- Peer dependency error between react-native-tvos and expo HOT 4
- ReactNativeTVTypes.d.ts error
- Proposal to Rename Repository for Better Clarity HOT 1
- run ios error HOT 1
- regression: Pressable without functional style or children will not call onPress() on select events HOT 6
- useTVEventHandler missing 'playPause' event for tvOS HOT 1
- Is there a way to handle the focus\blur of the container? HOT 1
- Selective Package Installation for Different Platforms in React Native
- Performance Issue with Custom Styling on Focused TouchableOpacity in React Native TV HOT 2
- [FireTV] eventType of HWEvent can be null HOT 1
- [iOS] Can't build app with use_frameworks! :linkage => :static HOT 2
- [iOS/tvOS] Build errors on integrate Expo 51 for 0.74 HOT 5
- [Android TV] onLongPress prop is not being fired for Pressable and TouchableOpacity, instead when long pressed it is treated as OnPress. HOT 3
- [Android TV] [Fabric] After a view has been recreated the `updateProperties` is passed all props instead of those that have changed. HOT 6
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-tvos.