Can test new changes on https://deploy-preview-22--openfit-programs-qa.netlify.app/graphql
type Query {
classStartInfo(_id: ID!, _key: String)
classEndInfo(_id: ID!, _key: String)
}
// This documents most of the types available in react-native-video when rendering a player | |
// To use these types, can inject as follows | |
import RNVideo from 'react-native-video'; | |
const Video = RNVideo as unknown as React.JSXElementConstructor<VideoProps>; | |
// ...Now use 'Video' as your react-native-video component, and you'll get the props. | |
// these below types were organized in 2020, so there may be new types available now in react-native-video | |
// The types are below: |
// App.tsx | |
import { ThemeProvider } from "styled-components"; | |
export const App: React.FC<{children: React.ReactNode}> = ({children}) => { | |
return ( | |
<ThemeProvider theme={theme}> | |
{children} | |
</ThemeProvider> | |
) | |
} |
import * as React from "react" | |
import { useSelector, useDispatch } from "react-redux" | |
// UserItem represents a user item in the list | |
import UserItem from "app/components/UserItem"; | |
type RootReducer = { | |
users: UserReducerState; | |
} |
//UsersList | |
import * as React from "react"; | |
import { connect } from "react-redux"; | |
import { User } from "app/redux/user-reducer"; | |
// UserItem represents a user item in the list | |
import UserItem from "app/components/UserItem"; | |
type Props = { | |
users: User[]; |
// UsersList without redux | |
import * as React from "react"; | |
import { useUserStore } from "app/hooks/user-hooks" | |
// UserItem represents a user item in the list | |
import UserItem from "app/components/UserItem"; | |
const UsersList: React.FC = () => { | |
const { users, updateUser, deleteUser } = useUserStore(); |
import { | |
RekognitionClient, | |
DetectFacesCommand, | |
DetectFacesCommandInput, | |
} from "@aws-sdk/client-rekognition"; | |
import imageUrlBuilder from "@sanity/image-url"; | |
import client, { SanityImageAssetDocument, Transaction } from "@sanity/client"; | |
import { default as nodeFetch } from "node-fetch"; | |
const SANITY_DATASET = "<my project dataset>"; |
Can test new changes on https://deploy-preview-22--openfit-programs-qa.netlify.app/graphql
type Query {
classStartInfo(_id: ID!, _key: String)
classEndInfo(_id: ID!, _key: String)
}
import computedField from 'sanity-plugin-computed-field' | |
import createSchema from 'part:@sanity/base/schema-creator' | |
import schemaTypes from 'all:part:@sanity/base/schema-type' | |
const Course = { | |
name: 'course', | |
title: 'Title for Course', | |
description: 'Represents a given course taught at Sanity U', | |
type: 'document', | |
fields: [ |
import stringEnumerator from "../../components/stringEnumerator"; | |
export const mySchema = { | |
//...other fields | |
fruits: { | |
name: "fruits", | |
title: "Favorite Fruits", | |
type: "string", | |
inputComponent: stringEnumerator, | |
options: { |
import React from 'react'; | |
import { | |
StyleSheet, | |
View, | |
Text, | |
TouchableOpacity, | |
SafeAreaView | |
} from 'react-native'; | |
import { Ionicons } from '@expo/vector-icons'; |