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
cat example.json | jq -c -r '.[] | {"index": {"_index": "index_name", "_type": "_doc", "_id": .id}}, .' | curl -XPOST -H "Content-Type: application/json" https://elastic_search_url/index_name/_bulk --data-binary @- |
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 { EvilIcons, Feather } from "@expo/vector-icons"; | |
import AppLoading from "expo-app-loading"; | |
import * as Expo from "expo-asset"; | |
import PropTypes from "prop-types"; | |
import React from "react"; | |
import { | |
Image, | |
Keyboard, | |
SafeAreaView, | |
StatusBar, |
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 { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client"; | |
import { offsetLimitPagination } from "@apollo/client/utilities"; | |
import { setContext } from "@apollo/link-context"; | |
import { GRAPHQL_API_URL } from "react-native-dotenv"; | |
import Firebase from "./firebase"; | |
const asyncAuthLink = setContext(async () => { | |
return { | |
headers: { | |
Authorization: `Bearer ${await Firebase.auth().currentUser.getIdToken()}`, |
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
plugin 'cocoapods-user-defined-build-types' | |
enable_user_defined_build_types! | |
install! 'cocoapods', :disable_input_output_paths => true | |
#use_frameworks! | |
require_relative '../node_modules/react-native/scripts/react_native_pods' | |
require_relative '../node_modules/react-native-unimodules/cocoapods.rb' | |
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' |