๐
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
| {/* Lighter Color Feedback */} | |
| <View style={tailwind('mt-10')}> | |
| <Pressable | |
| style={({ pressed }) => [ | |
| tailwind('p-4 items-center border-gray-200 bg-white'), | |
| separatorBorderWidth, | |
| pressed ? tailwind('bg-gray-200') : {}, | |
| ]} | |
| > | |
| <View> |
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
| <Pressable | |
| style={({ pressed }) => [ | |
| tailwind('p-4 items-center bg-blue-600'), | |
| pressed ? { opacity: 0.9 } : {}, | |
| ]} | |
| > | |
| <View> | |
| <Text style={[bodyTextStyle.FS18_MEDIUM, tailwind('text-white text-center')]}> | |
| Pressable a simple opacity | |
| </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
| <TapGestureHandler | |
| onHandlerStateChange={(event) => { | |
| if (event.nativeEvent.state === State.BEGAN) { | |
| spring(springValue, { | |
| toValue: 1, | |
| mass: 1, | |
| damping: 20, | |
| stiffness: 150, | |
| overshootClamping: false, | |
| restSpeedThreshold: 0.001, |
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
| <Animated.View | |
| style={[ | |
| { | |
| transform: [ | |
| { | |
| scale: interpolate(springValue, { | |
| inputRange: [0, 0.5], | |
| outputRange: [1, 0.95], | |
| }), | |
| }, |
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
| onHandlerStateChange={(event) => { | |
| if (event.nativeEvent.state === State.BEGAN) { | |
| spring(springValue, { | |
| toValue: 1, | |
| mass: 1, | |
| damping: 20, | |
| stiffness: 150, | |
| overshootClamping: false, | |
| restSpeedThreshold: 0.001, | |
| restDisplacementThreshold: 0.001, |
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
| useEffect(() => { | |
| // When notification is received in foreground | |
| messaging().onMessage((remoteMessage) => { | |
| Alert.alert('A new FCM message arrived!', JSON.stringify(remoteMessage)); | |
| }); | |
| // When an app is opened through notification | |
| messaging().onNotificationOpenedApp((remoteMessage) => { | |
| console.log('Notification caused app to open from background state:', remoteMessage.notification); | |
| }); |
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 messaging from '@react-native-firebase/messaging'; | |
| const getToken = async () => { | |
| fcmToken = await messaging().getToken(); | |
| console.log(fcmToken); | |
| }; | |
| useEffect(() => { | |
| getToken(); | |
| }, []) |
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 create from 'zustand'; | |
| interface ToastType { | |
| showToast: boolean; | |
| toastMessage: string; | |
| toastIcon: JSX.Element | React.FC | null; | |
| } | |
| interface ToastStore extends ToastType { | |
| setShowToast: (values: ToastType) => void; |
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 isEqual from 'lodash/isEqual'; | |
| import PropTypes from 'prop-types'; | |
| import React, {useEffect, useRef, useState} from 'react'; | |
| import {Animated, StyleSheet, Text} from 'react-native'; | |
| import {TouchableHighlight} from 'react-native-gesture-handler'; | |
| import {COLORS, SANS_BASE} from '../helpers/styledTheme'; | |
| import TextInputWrapper from './TextInputWrapper'; | |
| const FormField = ({ | |
| handleChange, |