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
// inside service worker eg. sw.ts | |
self.addEventListener('fetch', function (event) { | |
if (event.request.url.endsWith('.mp4')) { | |
event.respondWith( | |
caches.match(event.request).then(function (response) { | |
if (response) { | |
return response | |
} else { |
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, {Dispatch, SetStateAction, useEffect, useState} from 'react'; | |
import {Pressable, Text, useWindowDimensions, View} from 'react-native'; | |
import Animated, { | |
Easing, | |
runOnJS, | |
useAnimatedStyle, | |
useSharedValue, | |
withSpring, | |
withTiming, | |
} from 'react-native-reanimated'; |
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, {Dispatch, SetStateAction, useEffect, useState} from 'react'; | |
import {Pressable, Text, useWindowDimensions, View} from 'react-native'; | |
import Animated, { | |
Easing, | |
runOnJS, | |
useAnimatedStyle, | |
useSharedValue, | |
withSpring, | |
withTiming, | |
} from 'react-native-reanimated'; |
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, {Dispatch, SetStateAction, useEffect} from 'react'; | |
import {Pressable, Text, useWindowDimensions, View} from 'react-native'; | |
import Animated, { | |
Easing, | |
useAnimatedStyle, | |
useSharedValue, | |
withSpring, | |
withTiming, | |
} from 'react-native-reanimated'; |
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} from 'react'; | |
import {Pressable, Text, View, SafeAreaView} from 'react-native'; | |
import {Modal} from './src/components/Modal'; | |
const App = () => { | |
const [showModal, setShowModal] = useState(false); | |
const handleOnPress = () => { | |
setShowModal(modalShownState => !modalShownState); |
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} from 'react'; | |
import Animated, { | |
Easing, | |
useAnimatedStyle, | |
useSharedValue, | |
withTiming, | |
} from 'react-native-reanimated'; | |
type ModalPropType = { | |
showModal: boolean; |
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
desc "Increase Version Name" | |
lane :increase_version_name_iOS do | |
package = load_json(json_path: "../package.json") | |
package_version = package['version'] | |
increment_version_number( | |
version_number: package_version | |
) | |
end |
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
desc "Deploy Application" | |
lane :patch do | |
match() | |
increment_build_number() | |
increment_version_number(bump_type: "patch") | |
gym() | |
pilot() | |
end | |
desc "Deploy publ minor" |
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
apply plugin: "com.android.application" | |
import com.android.build.OutputFile | |
/** | |
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets | |
* and bundleReleaseJsAndAssets). | |
* These basically call `react-native bundle` with the correct arguments during the Android build | |
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the | |
* bundle directly from the development server. Below you can see all the possible configurations |
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
desc "Deploy newTarget" | |
lane :newTarget do | |
match(type: 'appstore', readonly: true) | |
gym(scheme: 'newTarget', clean: true) // 여기에 아까 만들었던 scheme의 이름을 넣어줍시다. 그러면 gym이 알아서 빌드합니다. | |
pilot() | |
end |
NewerOlder