๐
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 from 'react'; | |
| import { Animated, StyleSheet } from 'react-native'; | |
| const ImageContainer = ({ | |
| scrollY, | |
| imageSource, | |
| imageHeight, | |
| }) => { | |
| return ( | |
| <Animated.Image |
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 from 'react'; | |
| import { Rect } from 'react-native-svg'; | |
| import ContentLoader from 'rn-content-loader'; | |
| import { deviceWidth } from '../helpers/constants'; | |
| export const LoadingAtom = (props) => { | |
| return ( | |
| <ContentLoader | |
| height={120} | |
| width={(deviceWidth - 80) / 2} |
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 { Animated, SafeAreaView, StatusBar, StyleSheet, View } from 'react-native'; | |
| import { deviceHeight } from '../helpers/constants'; | |
| import BottomContainer from './BottomContainer'; | |
| import ImageContainer from './ImageContainer'; | |
| import { LoadingAtom } from './LoadingAtom'; | |
| const OverlappingContainers = (props) => { | |
| const [scrollY, setScrollY] = useState(new Animated.Value(0)); | |
| const imageSource = 'https://images.unsplash.com/photo-1591187194794-1860cc81437c'; |
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, { useMemo, useState } from 'react'; | |
| import { Animated, ScrollView, StatusBar, StyleSheet, TextInput, View, Text, TouchableHighlight } from 'react-native'; | |
| import mockList from './helpers/mockList'; | |
| import { deviceWidth } from './LoaderComponent'; | |
| import { TouchableOpacity } from 'react-native-gesture-handler'; | |
| const SearchComponent = (props) => { | |
| const { | |
| clampedScroll | |
| } = props; |
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, useMemo } from 'react'; | |
| import { Animated, SafeAreaView, StatusBar, View } from 'react-native'; | |
| import NameListItem from './src/NameListItem'; | |
| import SearchComponent from './src/SearchComponent'; | |
| import { deviceHeight } from './src/LoaderComponent'; | |
| import mockList from './src/helpers/mockList'; | |
| import 'react-native-gesture-handler'; | |
| console.disableYellowBox = true; |
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 axios from "axios"; | |
| import { useQuery } from "react-query"; | |
| import { BACKEND_GQL_ENDPOINT, X_HASURA_ADMIN_SECRET } from "./api"; | |
| export const post = ({ data, token }) => ({ | |
| method: 'POST', | |
| url: BACKEND_GQL_ENDPOINT, | |
| data, | |
| headers: { |
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 PropTypes from 'prop-types'; | |
| import React from 'react'; | |
| import { StyleSheet, Text, TouchableHighlight, View } from 'react-native'; | |
| const PRIMARY_COLOR = 'rgb(0,98,255)'; | |
| const WHITE = '#ffffff'; | |
| const BORDER_COLOR = '#DBDBDB'; | |
| const ActionSheet = (props) => { | |
| const { actionItems } = props; |
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 { | |
| Dimensions, SafeAreaView, | |
| StatusBar, StyleSheet, | |
| Text, | |
| TouchableOpacity, View | |
| } from 'react-native'; | |
| import Modal from 'react-native-modal'; | |
| import ActionSheet from './src/actionSheet'; |