A how-to for a countdown clock.
A Pen by Trọng Hiếu on CodePen.
A how-to for a countdown clock.
A Pen by Trọng Hiếu on CodePen.
import React, { useCallback, useEffect, useRef, useState } from 'react'; | |
type IOProps = { | |
ref: React.RefObject<any>; | |
}; | |
type Props = { | |
skeleton?: React.ReactNode; | |
skeletonDuration?: number; | |
options?: { |
/** | |
* Design belike this video: | |
* https://youtu.be/zM3l9jpt5PU | |
*/ | |
import React, {useEffect} from 'react'; | |
import {Animated, Dimensions, Easing, StyleSheet, View as DefaultView} from 'react-native'; | |
import LinearGradient from 'react-native-linear-gradient'; | |
const width = Dimensions.get('window').width; |
const electron = require('electron'); | |
// Module to control application life. | |
const app = electron.app; | |
// Module to create native browser window. | |
const BrowserWindow = electron.BrowserWindow; | |
const path = require('path'); | |
const url = require('url'); | |
// Keep a global reference of the window object, if you don't, the window will |
I hereby claim:
To claim this, I am signing this object: