- update OS
- factory reset
-
- set mouse buttons to mission control
import {Dimensions, Platform, StatusBar} from 'react-native'; | |
const {width, height} = Dimensions.get('window'); | |
const X_WIDTH = 375; | |
const X_HEIGHT = 812; | |
const XSMAX_WIDTH = 414; | |
const XSMAX_HEIGHT = 896; |
{"lastUpload":"2020-06-17T23:02:23.799Z","extensionVersion":"v3.4.3"} |
/** | |
* Given a DNI and a gender it returns the corresponding CUIT. | |
* @param {String} dni | |
* @param {String} gender | |
*/ | |
const getCUIT = (dni, gender = 'M') => { | |
if (!dni || dni.length !== 8) { | |
throw new Error('The DNI number must contain 8 numbers'); | |
} |
import { useState, useEffect } from 'react'; | |
const useContainerDimensions = containerRef => { | |
const getDimensions = () => ({ | |
width: containerRef.offsetWidth, | |
height: containerRef.offsetHeight | |
}); | |
const [dimensions, setDimensions] = useState({ width: 0, height: 0 }); |
import React from 'react' | |
import { ClassNames, CSSObject } from '@emotion/react' | |
import { Column, useTable } from 'react-table' | |
import TextByScale from './TextByScale' | |
interface Props { | |
columns: Array<Column> | |
data: Array<any> | |
} |
I hereby claim:
To claim this, I am signing this object:
requestLocationPermission({ | |
grantPermission: () => console.warn('location granted'), | |
refusePermission: () => console.warn('location not granted'), | |
}); |
const numToRad = (num) => (num * Math.PI) / 180; | |
export const getDistFrom2GpsLocations = ({ lat1, long1, lat2, long2 }) => { | |
lat1 = parseFloat(lat1); | |
long1 = parseFloat(long1); | |
lat2 = parseFloat(lat2); | |
long2 = parseFloat(long2); | |
const R = 6371e3; | |
const φ1 = numToRad(lat1); |
import React, { PureComponent } from 'react'; | |
import { AppNavigator, setTopLevelNavigator } from './navigation'; | |
import { KeyboardProvider } from './utils/keyboardContext'; | |
export default class App extends PureComponent { | |
render() { | |
return ( | |
<KeyboardProvider> | |
<AppNavigator ref={navigationRef => setTopLevelNavigator(navigationRef)} /> |