Files
iNaturalistReactNative/models/Observation.js
Amanda Bullington ff6789c32c Merge obs list, obs card, and user profile into main (#4)
* Obs detail screen skeleton; move safe area view to wrapper component

* Progress on obs detail

* Get ids and photos from api v2

* Fetch data needed for data tab in obs detail

* Create basic map for data tab, centered on lat/long

* Create linked realms for photos and identifications; access these on obs detail screen

* User Profile and more setup for test suite

* Delete coverage directory

* Add Jest coverage folder to gitignore

* Keep trying to mock out fetch for inatjs in ObsList.test.js

* Rename ObsList.test to match component name
2021-11-04 15:44:57 -07:00

30 lines
699 B
JavaScript

class Observation {
static schema = {
name: "Observation",
primaryKey: "uuid",
properties: {
uuid: "string",
commentCount: "int",
comments: "Comment[]",
commonName: "string?",
createdAt: "string",
description: "string?",
identifications: "Identification[]",
identificationCount: "int",
latitude: "double?",
location: "string",
longitude: "double?",
photos: "Photo[]",
placeGuess: "string",
qualityGrade: "string",
taxonRank: "string",
timeObservedAt: "string",
userProfilePhoto: "string",
userLogin: "string",
userPhoto: "string"
}
}
}
export default Observation;