Skip to content

Instantly share code, notes, and snippets.

DeviceInfo.getApplicationName().then(appName => {
// AwesomeApp
});
DeviceInfo.getBaseOs().then(baseOs => {
// "Windows", "Android" etc
});
DeviceInfo.getBatteryLevel().then(batteryLevel => {
// 0.759999
server {
server_name testdeploy.westsoftware.com.br;
location / {
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
<table cellpadding="0" cellspacing="0" class="sc-gPEVay eQYmiW" style="vertical-align: -webkit-baseline-middle; font-size: medium; font-family: Arial;">
<tbody>
<tr>
<td>
<table cellpadding="0" cellspacing="0" class="sc-gPEVay eQYmiW" style="vertical-align: -webkit-baseline-middle; font-size: medium; font-family: Arial;">
<tbody>
<tr>
<td width="125" style="vertical-align: middle;">
<span class="sc-kgAjT cuzzPp" style="margin-right: 20px; display: block;">
<a href="https://westcob.com.br/"><img src="https://i.imgur.com/2BsE73K.png" role="presentation" width="125" class="sc-cHGsZl bHiaRe" style="max-width: 130px;"></a>
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: unimed-ingress
namespace: production
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/secure-backends: "true"
import React, { useState, useRef } from 'react';
import debounce from 'lodash/debounce';
import { Container, TInput, Icon, IconContainer, SearchIcon } from './styles';
export default function SearchInput({ onChangeText }) {
const delayedQuery = useRef(debounce(value => onChangeText(value), 500))
.current;
const [searchText, setSearchText] = useState('');