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 "AppDelegate.h" | |
#import <React/CoreModulesPlugins.h> | |
#import <React/JSCExecutorFactory.h> | |
#import <React/RCTBridge.h> | |
#import <React/RCTBundleURLProvider.h> | |
#import <React/RCTCxxBridgeDelegate.h> | |
#import <React/RCTJavaScriptLoader.h> | |
#import <React/RCTLinkingManager.h> | |
#import <React/RCTRootView.h> |
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
/* global IntersectionObserver */ | |
import * as React from 'react'; | |
// @ts-ignore | |
import { findNodeHandle } from 'react-native-web'; | |
import { BaseImage, BaseImageProps } from './BaseImage'; | |
import { Box } from '../Box'; | |
// Cache if we've seen an image before so we don't both with | |
// lazy-loading & fading in on subsequent mounts. |
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 { | |
GraphQLFieldConfig, | |
GraphQLFloat, | |
GraphQLNonNull, | |
GraphQLObjectType, | |
GraphQLString, | |
GraphQLUnionType, | |
} from 'graphql'; | |
import { globalIdField } from 'graphql-relay'; | |
import * as AdminDashboardService from '../../services/AdminDashboardService'; |
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
const CompatSafeAreaView = ({ | |
forceInsets = {}, | |
children, | |
}: { | |
forceInsets?: { | |
top?: boolean; | |
right?: boolean; | |
bottom?: boolean; | |
left?: boolean; | |
}; |
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
... | |
#if DEBUG | |
#import <FlipperKit/FlipperClient.h> | |
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h> | |
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h> | |
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h> | |
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h> | |
#endif |
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
package com.th3rdwave; | |
import android.content.Context; | |
import com.facebook.drawee.backends.pipeline.Fresco; | |
import com.facebook.flipper.android.AndroidFlipperClient; | |
import com.facebook.flipper.android.utils.FlipperUtils; | |
import com.facebook.flipper.core.FlipperClient; | |
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; | |
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; |
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
const onInvitePress = () => { | |
let didShare = false; | |
const message = `Try my cool app`; | |
const emails = selectedContacts | |
.filter(c => c.email != null) | |
.map(c => c.email) as string[]; | |
const phoneNumbers = selectedContacts | |
.filter(c => c.phoneNumber != null) | |
.map(c => c.phoneNumber) as string[]; | |
if (emails.length > 0) { |
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
type RowItem = { | |
id: string; | |
name: string; | |
phoneNumber?: string; | |
email?: string; | |
}; | |
function InviteScreen() { | |
const contacts = useContacts(); |
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
// Is this redux? | |
type ContactsState = { | |
loading: boolean; | |
error: Error | null; | |
data: Array<Contact>; | |
}; | |
function useContacts() { | |
const [contacts, setContacts] = React.useState<ContactsState>({ | |
loading: true, |
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
# install gitpkg globally first | |
# in the metro fork run: | |
yarn run build-clean && yarn run build && yarn lerna run prepare-release | |
yarn lerna exec --bail=false gitpkg publish | |
yarn lerna run cleanup-release |