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
| CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
| CREATE FUNCTION public.nanoid(prefix text DEFAULT '', size int DEFAULT 21) | |
| RETURNS text | |
| LANGUAGE plpgsql | |
| VOLATILE PARALLEL SAFE | |
| AS $$ | |
| DECLARE | |
| alphabet text := '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
| idBuilder text := ''; |
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 * as React from 'react'; | |
| import { View, StyleSheet } from 'react-native'; | |
| import Constants from 'expo-constants'; | |
| import AssetExample from './components/AssetExample'; | |
| import Svg, { | |
| SvgProps, | |
| Path, | |
| Polygon, | |
| G, | |
| Rect, |
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
| const App = () => { | |
| const lastContentOffset = useSharedValue(0); | |
| const isScrolling = useSharedValue(false); | |
| const renderItem = ({ item }) => <Item title={item.title} />; | |
| const scrollHandler = useAnimatedScrollHandler({ | |
| onScroll: (event) => { | |
| if (lastContentOffset.value > event.contentOffset.y) { | |
| if (isScrolling.value) { | |
| console.log("UP"); | |
| } |
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
| platform :ios, '9.0' | |
| require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | |
| def add_flipper_pods!(versions = {}) | |
| versions['Flipper'] ||= '~> 0.33.1' | |
| versions['DoubleConversion'] ||= '1.1.7' | |
| versions['Flipper-Folly'] ||= '~> 2.1' | |
| versions['Flipper-Glog'] ||= '0.3.6' | |
| versions['Flipper-PeerTalk'] ||= '~> 0.0.4' | |
| versions['Flipper-RSocket'] ||= '~> 1.0' |
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
| // | |
| // ViewController.m | |
| // RNClip | |
| // | |
| // Created by Nazir Dogan on 30.06.2020. | |
| // | |
| #import "ViewController.h" | |
| #import <React/RCTBundleURLProvider.h> | |
| #import <React/RCTRootView.h> |
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 { AppRegistry, View, Text, Button } from 'react-native'; | |
| import React from 'react'; | |
| const AppClip = () => ( | |
| <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | |
| <Text style={{ fontSize: 22 }}> | |
| React Native App Clip | |
| </Text> | |
| <Button | |
| title="Learn More" | |
| color="#841584" |
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 { AppRegistry, View, Text, Button } from 'react-native'; | |
| import React from 'react'; | |
| const AppClip = () => ( | |
| <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | |
| <Text style={{ fontSize: 22 }}> | |
| React Native App Clip | |
| </Text> | |
| <Button | |
| title="Learn More" | |
| color="#841584" |
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
| rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && npm cache clean --force && npm cache verify && rm -rf ios/build && rm -rf node_modules/ && npm i |
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
| // | |
| // ComNextchapterOrangeModule.swift | |
| // orange | |
| // | |
| // Created by Your Name | |
| // Copyright (c) 2019 Your Company. All rights reserved. | |
| // | |
| import UIKit | |
| import TitaniumKit |
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
| class MyHomeScreen extends React.Component { | |
| static navigationOptions = { | |
| drawerLabel: 'Home', | |
| drawerIcon: ({ tintColor }) => ( | |
| <Image | |
| source={require('./chats-icon.png')} | |
| style={[styles.icon, {tintColor: tintColor}]} | |
| /> | |
| ), | |
| }; |
NewerOlder