This file contains 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
// Remove node_modules, iOS Pods and android build in nested folders from current pwd | |
find . \( -type d -name "node_modules" -o -type d -path "*/ios/Pods" -o -type d -path "*/android/build" \) -exec rm -rf '{}' + | |
// command to approve "developer not verified error" executables from terminal | |
xattr -d com.apple.quarantine $(which <name-of-executable>) | |
// xcode build clean | |
xcodebuild clean -workspace ios/{projectName}.xcworkspace -scheme {projectName} |
This file contains 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, StyleSheet, Text} from 'react-native'; | |
import PagerView from 'react-native-pager-view'; | |
import Animated, {useHandler, useEvent} from 'react-native-reanimated'; | |
const AnimatedPager = Animated.createAnimatedComponent(PagerView); | |
export function usePagerScrollHandler(handlers, dependencies) { | |
const {context, doDependenciesDiffer} = useHandler(handlers, dependencies); | |
const subscribeForEvents = ['onPageScroll']; |
This file contains 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 { Keyboard, Platform, KeyboardEvent } from 'react-native'; | |
const useKeyboardBottomInset = () => { | |
const [bottom, setBottom] = React.useState(0); | |
const subscriptions = React.useRef([]); | |
React.useEffect(() => { | |
function onKeyboardChange(e) { | |
if ( | |
e.startCoordinates && |
This file contains 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
{"lastUpload":"2020-11-02T12:03:38.255Z","extensionVersion":"v3.4.3"} |
NewerOlder