This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS ui</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS ui</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS ui</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2016 Esa-Matti Suuronen <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { View, Animated, Text, StyleSheet, Button, Dimensions } from "react-native"; | |
const DEVICE_WIDTH = Dimensions.get("window").width; | |
const SliderScreen = () => { | |
const animateRight = new Animated.Value(0); | |
const moveOver = () => { | |
Animated.timing(animateRight, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-console */ | |
const fs = require("fs"); | |
const path = require("path"); | |
const pipeline = require("icomoon-cli"); | |
const ICONS_FOLDER = path.join(__dirname, "../icons"); | |
const SELECTION_PATH = path.join(__dirname, "../../configs/humanforce-font-selection.json"); | |
function getIcons() { | |
return fs.readdirSync(ICONS_FOLDER); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect, memo } from "react"; | |
import { View, TouchableOpacity, TouchableWithoutFeedback, Animated, StyleSheet } from "react-native"; | |
import { IoniconsIcon } from "~/components/Icons/Ionicons"; | |
import { c, t } from "~/helpers/rootHelper"; | |
import { useKeyboard } from "~/hooks"; | |
const END_HEIGHT = 120; | |
const START_HEIGHT = 160; | |
const START_WIDTH = c.DEVICE_WIDTH * 0.7; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from "react"; | |
import { Keyboard } from "react-native"; | |
import { c } from "~/helpers/rootHelper"; | |
const useKeyboard = () => { | |
const [indent, setIndent] = useState(0); | |
const isVisible = indent > 0; | |
const dismiss = () => { | |
Keyboard.dismiss(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCallback, useEffect, useRef } from 'react'; | |
export function useMounted() { | |
const refMounted = useRef(false); | |
useEffect(() => { | |
refMounted.current = true; | |
return () => { | |
refMounted.current = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect } from "react"; | |
function useDebouncedEffect(fn, deps, time) { | |
const dependencies = [...deps, fn, time] | |
useEffect(() => { | |
const timeout = setTimeout(fn, time); | |
return () => { | |
clearTimeout(timeout); | |
} | |
}, dependencies); |
OlderNewer