Turn off notification light automatically expo - react-native

How do i add led light notifications on my react native app that turn off when i press the notification

The short answer is that you cannot do this with ReacNative alone.
The slightly longer answer is that you can control the LED light through Android code. You can read more in this question/answer: How to make notification lights work in react-native on android?

Related

How to stop other apps push notification from react native app? [duplicate]

A React Native-specific version of this question was asked, but not answered React-Native: How can I disable all push notifications while my app is active?
Essentially, is there a way to remove interruptions while my app is in the foreground? Ideally there would be a "focus" state I put the app into that minimizes disruptions, but I can't find an API like that.
Concretely, part of my app involves meditation states. Getting popups during one of those is distracting, so I'd like to disable banners and alerts while one of those sessions is running.
Happy to hear it's not possible, just haven't actually found that answer yet.
No, you don't have an API or control over other apps notifications. But surely you can control your app notifications. You can handle those notifications without prompting. Let me know if this is helpful.

How do I change the color of the keyboard to dark mode for android in React Native?

I know that the keyboardAppearance" prop for TextInput sets an ios keyboard to dark mode, but how could I do this for android too? Any help is much appreciated. Thanks!
Unfortunately you can't do it on android.
In Android the keyboard is not (only) a native feature. You can chose wether showing it or not and which keyboard to show.
But since it's another application, you can't access it directly, the only tasks you can do are opening the app with intent.
However, the iOS, which is ironically more closed to OS tweaks, is available:

Show a button on screen when the app is in background (React Native)

I'm trying to figure out how the apps like facebook messenger shows a circle of user image on screen when a new message comes, and Uber driver app shows the uber icon on screen when the user minimizes it. Is there anyway that I can show a customized component on phone screen even when the app is not open?
This Stackoverflow thread explains how to replicate in react native by changing the java code as its not supported by react native yet.
this feature is not support directly from react native and also this is not supported in ios therefore only you could implement it with java native code in android. to do that you should write a service in android which handle this element life cycle.
Check this below by lord pooria
RN-thread
Hope it helps. feel free for doubts

Expo - scheduled notification. Bring app to foreground

I have been searching through the Expo documentation and haven't been able to find anything.
Is it possible to bring an app to the foreground using expo?
e.g. if I made a simple alarm clock - would it be possible to bring the app to the foreground and show an alarm screen without actively clicking on a notification?
I'm interested in both iOS and Android - any information is very much appreciated.

how to make React native get the notification when the app is killed

Thanks for help.
I have an idea.
obj-c processes notification and pass the content to rn.
And I will try this.
I don't think you can do anything after the app is killed (because it's killed !).
What you can observe though is when the app goes in background / get back focus. See AppState API in React Native. http://facebook.github.io/react-native/docs/appstate.html#content