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
name: E2E tests | |
on: | |
workflow_dispatch: | |
# daily builds on week days at 6pm EDT (22:00 UTC or 23:00 UTC (day light savings adjustment)) | |
schedule: | |
- cron: '00 23 * * 1,2,3,4,5' | |
env: | |
NO_FLIPPER: 1 |
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 { useNavigation } from '@react-navigation/native'; | |
import React, { useCallback, useEffect, useRef } from 'react'; | |
import { StyleSheet, useWindowDimensions, View } from 'react-native'; | |
import { Gesture, GestureDetector } from 'react-native-gesture-handler'; | |
import Animated, { | |
Extrapolation, | |
interpolate, | |
runOnJS, | |
useAnimatedStyle, | |
useSharedValue, |
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
simonreggiani@Simons-MacBook-Pro local-tennis-app % amplify push | |
✔ Successfully pulled backend environment dev from the cloud. | |
Current Environment: dev | |
| Category | Resource name | Operation | Provider plugin | | |
| --------- | ----------------------- | --------- | ----------------- | | |
| Function | sendPushOnCreateMessage | Update | awscloudformation | | |
| Auth | localtennisapp879bce4a | No Change | awscloudformation | | |
| Api | localtennisapp | No Change | awscloudformation | |
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
export const jwtMiddleware: Middleware = ( | |
api: MiddlewareAPI<Dispatch, IRootState> | |
) => { | |
// add JWT access token to all request header if present | |
axios.interceptors.request.use((config: AxiosRequestConfig) => { | |
const authState = api.getState().auth; | |
if (authState.access) { | |
config.headers = { | |
...config.headers, | |
Authorization: `Bearer ${authState.access}`, |