Files
iNaturalistReactNative/tests/factories/RemoteVote.js
Ken-ichi e6b5cb8aa6 Obs details sounds (#1062)
* Extracted non-photo stuff from PhotoDisplay
* Separate component for FaveButton
* Prevent faves while signed out
* Separate component for nav header
* Stick nav header while scrolling until tabs
* Nav header has slight gradient for visibility over white content
* Renamed ObsDetails media components so they're not focused on photos
* Data and layout changes leading up to sound player on ObsDetail
* Add sound player to ObsDetails
* Swiping away while playing should pause playback
* Swiping back to sound and playing again should resume where you left off
* Allow viewing media while offline (images may be cached)
* Stop playback when navigating away from ObsDetails
* Fetch sounds in Explore so we can show sound icon
* Map all observation objects in explore with Realm-ish attributes
2024-01-22 13:12:01 -08:00

14 lines
360 B
JavaScript

import { define } from "factoria";
import userFactory from "./RemoteUser";
export default define( "RemoteVote", faker => ( {
created_at: faker.date.past( ).toISOString( ),
id: faker.number.int( ),
// Default to vote in favor
vote_flag: true,
// Default to unscoped vote, e.g. obs fave
vote_scope: null,
user: userFactory( "RemoteUser" )
} ) );