Changeset View
Changeset View
Standalone View
Standalone View
native/media/remote-image.react.js
// @flow | // @flow | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import type { ImageSource } from 'react-native/Libraries/Image/ImageSource'; | import type { ImageSource } from 'react-native/Libraries/Image/ImageSource'; | ||||
import { type ConnectionStatus } from 'lib/types/socket-types.js'; | import { type ConnectionStatus } from 'lib/types/socket-types.js'; | ||||
import LoadableImage from './loadable-image.react.js'; | import LoadableImage from './loadable-image.react.js'; | ||||
import { useSelector } from '../redux/redux-utils.js'; | import { useSelector } from '../redux/redux-utils.js'; | ||||
import type { ImageStyle } from '../types/styles.js'; | import type { ImageStyle } from '../types/styles.js'; | ||||
type BaseProps = { | type BaseProps = { | ||||
+uri: string, | +uri: string, | ||||
+onLoad: (uri: string) => void, | +onLoad?: (uri: string) => void, | ||||
+spinnerColor: string, | +spinnerColor: string, | ||||
+style: ImageStyle, | +style: ImageStyle, | ||||
+invisibleLoad: boolean, | +invisibleLoad: boolean, | ||||
+placeholder?: ?ImageSource, | +placeholder?: ?ImageSource, | ||||
}; | }; | ||||
type Props = { | type Props = { | ||||
...BaseProps, | ...BaseProps, | ||||
+connectionStatus: ConnectionStatus, | +connectionStatus: ConnectionStatus, | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |