Callback on Release called just once
See original GitHub issueHej there,
with your module it has been a pleasure to implement spotlight search 😃
When I built it the first time in Release mode I faced a surprise, though: Compared to Development mode, where it responds to multiple interactions, in Release it only reacts to the first user interaction.
I solved it by recursively listening for user taps, but I wonder whether that is a bug in your module, or a constraint by Apple.
While looking at your code I found something with an activity queue, so I assume your intention was to support multiple interactions. But here my Objective C skills end.
(react-native@0.33.1
, react-native-spotlight-search@0.2.0
)
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
PyAudio callback being called only once - Stack Overflow
The midi stream works fine, but my audio stream only seems to call the callback once, right when the script is started (...
Read more >JavaScript: What the heck is a Callback? | by Brandon Morelli
Simply put: A callback is a function that is to be executed after another function has finished executing — hence the name 'call...
Read more >JavaScript Callback Functions – What are Callbacks in JS and ...
In JavaScript, the way to create a callback function is to pass it as a parameter to another function, and then to call...
Read more >Reading 20: Callbacks and Graphical User Interfaces
Sometimes a callback function will be called only once (or at most once), as a response to a one-time request, as in this...
Read more >Chromium Docs - OnceCallback<> and BindOnce ...
When you pass a base::{Once,Repeating}Callback object to a function ... When calling member functions, bound parameters just go after the object pointer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for reporting the issue!
Does this problem happen even in the example project I provided? I will try and take a look at this sometime this week 👍
Happy to help. Also happy to accept stickers ⭐️
If your project ends up on the App Store and you’re happy for it to be included, I can add it to a showcase in this repo.