Skip to content

Instantly share code, notes, and snippets.

import React, { useState, useRef, useContext, useCallback } from 'react';
import { Dimensions, View, Animated } from 'react-native';
import { TabView } from 'react-native-tab-view';
import { TabScreen } from './Tab';
import { CustomTabBar } from './TabBar';
import { ThemeContext } from 'react-native-elements';
import { useHeaderHeight } from '@react-navigation/stack';
const AnimatedHeader = ({ style, content }) => {
return <Animated.View style={style}>{content}</Animated.View>;
};
async function (user, context, callback) {
user.app_metadata = user.app_metadata || {};
if (user.app_metadata.signedup) {
return callback(null, user, context);
}
const fetch = require('[email protected]');
var baseURL = configuration.BACKEND_URL;
var tokenSecret = configuration.BACKEND_SECRET;
var body;