Changeset View
Changeset View
Standalone View
Standalone View
native/media/multimedia.react.js
// @flow | // @flow | ||||
import { Image } from 'expo-image'; | import { Image } from 'expo-image'; | ||||
import invariant from 'invariant'; | import invariant from 'invariant'; | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import { View, StyleSheet } from 'react-native'; | import { View, StyleSheet } from 'react-native'; | ||||
import { type MediaInfo } from 'lib/types/media-types.js'; | import type { MediaInfo, AvatarMediaInfo } from 'lib/types/media-types.js'; | ||||
import RemoteImage from './remote-image.react.js'; | import RemoteImage from './remote-image.react.js'; | ||||
import { type InputState, InputStateContext } from '../input/input-state.js'; | import { type InputState, InputStateContext } from '../input/input-state.js'; | ||||
type BaseProps = { | type BaseProps = { | ||||
+mediaInfo: MediaInfo, | +mediaInfo: MediaInfo | AvatarMediaInfo, | ||||
+spinnerColor: string, | +spinnerColor: string, | ||||
}; | }; | ||||
type Props = { | type Props = { | ||||
...BaseProps, | ...BaseProps, | ||||
// withInputState | // withInputState | ||||
+inputState: ?InputState, | +inputState: ?InputState, | ||||
}; | }; | ||||
type State = { | type State = { | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |