React Native custom TextInput component has turquoise indicator on hold - react-native

I made a custom TextInput component, which cursor color was also turquoise, but with the selectionColor Prop I managed to change its color. If I hold my finger on the input field, this indicator shows up, having turquoise color from nowhere. Not a single component has this color in the application.

check this github issue, you will get the solution of above problem
https://github.com/callstack/react-native-paper/issues/344

Related

Drawer White Background is stuck on display after orientation changes

For some reason when the orientation changes, I get a white box, which I am assuming is the place of the Drawer pre orientation change. Picture: Simulator Example
If I fully remove and re-render the Home component the white box will go away, but I would like to try and avoid that. I have tried passing height/width props when the dimensions change, but that didn't seem to fix the problem. Would be nice to get some help on this since I am stuck.

React Native Text Selectable prop not working

I have a Text component which I would like to make selectable. I provided the Text component the selectable prop, however it isn't working. I am pretty sure that it is because I have it nested in a ScrollView and my pressing it is only registering on the scrollview. Any way to get past this?
Can provide a code example if needed.

Fluent UI React Changing the focus outline color to primary inverted color

I'm rendering a CommandButton with only an icon inside a container with a dark background with gradient and I have set the background color of the button to be transparent. (Note that it is transparent because the container's background color has a gradient.)
The problem I have is that since the default focus outline for the button is black and it's not visible against the dark background. How can I change this so that the focus outline becomes the invert color of the primary color?
I can always attach a custom CSS to change the outline color, but I'm looking for the correct way supported by the Fluent UI framework. I noticed that the Button component puts a white background color when the primary=true prop is specified. So, there seems to be a way to change the outline color, but I could not really figure out how. I also looked into the source code, and it takes a theme object and generates a class name, but this still did not tell me the full story.
There are sometimes ::after selectors in play with FluentUI focus behavior. The "Chrome version >= 86" portion of this answer shows how to put Chrome in a state that will yet you inspect your components without losing focus in the page when you navigate in DevTools.
When I encounter focus styling that I want to change in Fluent, I can find out what's applying the styles I wish to alter using this method and then override them.

React Native SearchBar placeholder alignment

I'm using react-native-elements Searchbar and want the placeholder on the right, and the text entry on the left.
It appears that you can only use text align to determine where to type, so I attempted to use a state to make the text on the left, placholder on the right. But this solution doesn't work either.
Any ideas?
React Native Elements supports styles similar to the TextInput along with their own props.
Since there is no prop to style the placeholder in react-native's textinputas well assearchbar`, therefore it cannot be done just with the styles.
However I can suggest you to make a separate instance of react-native-element SearchBar and pass your CustomTextInput component that contains the placeholder styles as mentioned in this post

Ignore TextInput pointer events

I have a view with a TextInput that you can edit. At a certain the TextInput should not be editable, and it's container should respond to a click on it in a different manner.
Setting editable: false in the TextInput does disable editing, but the pointer events to the touchable container above are not recieved. Even setting pointerEvents: "none" on it will not work.
If I replace the TextInput with any other component, clicks are recieved.
My only solution right now is to replace my TextInput with Text when I want the read-only-clickable state, but the styling gets messed up when I do that and I need to adjust the Text to position itself like the TextInput which isn't as trivial as I imagined it would be.
I should point out - I am only testing this on Android at the moment.
Any ideas?
Thanks.