Skip to content

Instantly share code, notes, and snippets.

View spit4520's full-sized avatar
🎯
Focusing

spit4520

🎯
Focusing
View GitHub Profile
@spit4520
spit4520 / focusedInput.js
Created March 18, 2021 17:15
Fix for React Native 63, allows UIManager to be used with the new replacemnt for currentlyFocusedInput
//Replace all currentlyFocusedField with currentlyFocusedInput
import {
findNodeHandle,
UIManager,
TextInput,
} from 'react-native';
const currentlyFocusedField = findNodeHandle(TextInput.State.currentlyFocusedInput());
@spit4520
spit4520 / main.js
Created March 18, 2021 17:15
Fix for React Native 63, allows UIManager to be used with the new replacemnt for currentlyFocusedInput
//Replace all currentlyFocusedField with currentlyFocusedInput
import {
findNodeHandle,
UIManager,
TextInput,
} from 'react-native';
const currentlyFocusedField = findNodeHandle(TextInput.State.currentlyFocusedInput());
//Replace all currentlyFocusedField with currentlyFocusedInput
import {
findNodeHandle,
UIManager,
TextInput,
} from 'react-native';
const currentlyFocusedField = findNodeHandle(TextInput.State.currentlyFocusedInput());
{
"vehicles": {
"IMEI1":"host1",
"IMEI2":"host2"
},
"servers": {
"host1":{
"host":"tcp.host1.com",
"port":8081
},