I hereby claim:
- I am peterpme on github.
- I am peterpme (https://keybase.io/peterpme) on keybase.
- I have a public key ASDd9ipiMIdjkzvqnBaqXLvRHaN2-tVZtgHng-YSVYRv4Ao
To claim this, I am signing this object:
class InfoScreen extends React.PureComponent { | |
render() { | |
if (this.props.loading) return <ActivityIndicator /> | |
return ( | |
<View style={styles.container}> | |
<Text>Hi</Text> | |
</View> | |
) | |
} | |
} |
import React from 'react' | |
import { View, Text, StyleSheet } from 'react-native' | |
const Label = ({ label }) => ( | |
<View style={styles.container}> | |
<Text style={styles.label}>{label}</Text> | |
</View> | |
) | |
const styles = StyleSheet.create({ |
type User = { | |
id: ID! | |
first_name: String | |
last_name: String | |
email_verified: Boolean! | |
} | |
input UpdateUserInput { | |
first_name: String | |
last_name: String |
open BsReactNative; | |
let component = ReasonReact.statelessComponent("Label"); | |
let styles = | |
StyleSheet.create( | |
Style.( | |
{ | |
"container": | |
style([ |
{ | |
"name": "altos-react-native", | |
"reason": {"react-jsx" : 2}, | |
"bsc-flags": ["-bs-super-errors"], | |
"package-specs": [{ | |
"module": "commonjs", | |
"in-source": true | |
}], | |
"suffix": ".bs.js", | |
"namespace": true, |
const Layout = () => ( | |
<ScrollView | |
contentContainerStyle={{ | |
flexGrow: 1, | |
justifyContent: 'space-between' | |
}}> | |
<Row /> | |
<Row /> | |
<Row /> | |
<Row /> |
const Layout = () => ( | |
<ScrollView | |
contentContainerStyle={{ | |
flex: 1, | |
justifyContent: 'space-between' | |
}}> | |
<Row /> | |
<Row /> | |
<Row /> | |
<Row /> |
import { Constants } from 'expo' | |
const ENV = { | |
dev: { | |
apiUrl: 'http://localhost:1337/api' | |
}, | |
staging: { | |
apiUrl: 'https://staging.orchard.ai/api' | |
}, | |
prod: { |
updateUser: (variables) => { | |
return mutate({ | |
variables, | |
// when using optimisticResponse and I don't include the values, I get a warning. | |
optimisticResponse: { | |
updateUser: { | |
__typename: 'User', | |
id: 'xyz', | |
setting: undefined, |
I hereby claim:
To claim this, I am signing this object: