How do I change the color of the keyboard to dark mode for android in React Native? - 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:

Related

How to change Appearance mode on iOS programmatically?

On my react-native app I implemented dark mode, but this only is managed locally on my app using redux. On my iOS Splashscreen I implemented dark mode too.
The problem is, when I switch to dark mode locally(redux), the design on my app changes, everything is ok, but not the Splashscreen. I realized that only when I change the Appearance settings (Settings -> Developer -> Dark Appearance) to dark Mode, Splashscreen mode changes too.
I know that I can base it on user preferences to change to dark or light mode the app, but I need to control this locally and the dark mode apply on my app and Splashscreen also. Is this possible?
So, I guess, I need to change somehow the "Dark Appearance" programmatically. How can I get this?
You can try using react-native-appearance-control. Combine this with the Appearance API in react-native, and you can implement a dark mode toggle that the user can interact with.
See a similar question here which might help to guide you - Change colors of the whole app in react native

Turn off notification light automatically expo

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?

programmatical screen touch with react-native

My goal is to program a game assistant - app that runs on the background and does the following:
1) takes screenshot programmatically https://aboutreact.com/take-screenshot-programmatically/
2) analyzes some pixels of it
3) creates programmatical screen touches based on the screenshot
But I am not sure whether it is possible to use react native for creating screen touches. Any ideas? It appears to be possible in java, at least:
How to programmatically trigger the touch event in android?
Thank you!
It is possible to handle screen touches in react native using panResponder. You can more about it here:
https://facebook.github.io/react-native/docs/linking-libraries-ios
Also react-native have animated view that could be coupled by panResponder and I think it is applicable for you because you want to develop a game. You can read about react-native animations here:
https://facebook.github.io/react-native/docs/animations
Beside all of this if your game have many motions and is dependent to screen touches react-native maybe is not a good choice. Because react-native performance in such applications would be low. So I recommend be careful about the tech that you want to use.

Appium iOS can't inspect notification layer

Im using Appium to test my notifications in my iOS app.
Im sending with another device a notification while the iOS app is in BG. Then I swipe down using :
((IOSDriver) wd).swipe(500,0,500,1000,1000);
The above works, the screen get scrolled down and I can physically see the notification. The issue is that the appium still inspects the screen below.
I checked appium inspector and it verified that it doesn't recognize nothing but the elemnts of the layer below the notifications one.
Any approach ??
As long as I know it is known limitation for iOS now.
You can get notification bar elements on Android only
But based on top comment it should be possible to wrap up with Appium since Xcode 9 introduced interaction with multiple apps, so its matter of time.
I found a workaround that fits my needs.
I found out that if I click the home button and then swipe down the notification are visible to Appium.
Because Appium not having key events for iOS, iPhone has the an accessibility option for home button, I toggled that on and I can simply click it during the test and swipe down the notification center.
I know it's not ideal but its working.
Thanks for the help.

Can we make Animated icons for iOS 7 now in Xcode?

When i saw new iOS 7.0 then i saw clock icon is on running state. So i am curious to know, that can we also make icons dynamically by Xcode?
i googled also about this but didn't found any question or hint on this.
No, we're not able to created animated Springboard icons. The following still applies to iOS7.
Changing Icon per Day
Dynamic icon iOS