List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
// Expo SDK41 | |
// expo-blur: ~9.0.3 | |
import React, { useRef } from 'react'; | |
import { | |
Animated, | |
Image, | |
ImageBackground, | |
ScrollView, | |
StatusBar, |
import React, { PureComponent } from 'react' | |
import { Text, View, StyleSheet } from 'react-native' | |
import moment from 'moment' | |
import { LIGHT_GRAY, WHITE, BLACK } from '../../styles/colors' | |
class Timer extends PureComponent { | |
state = { | |
remainingTime: 0, | |
isTimerVisible: true | |
} |
/** | |
* Filters an array of objects with multiple criteria. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria as the property names | |
* @return {Array} | |
*/ | |
function multiFilter(array, filters) { | |
const filterKeys = Object.keys(filters); | |
// filters all elements passing the criteria |
platform :ios, '9.1' | |
abstract_target 'Foo' do | |
# RN related | |
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | |
'Core', | |
'CxxBridge', | |
'RCTAnimation', | |
'RCTBlob', | |
'RCTText', |