31 lines
689 B
JavaScript
31 lines
689 B
JavaScript
import React from "react"
|
|
import PropTypes from "prop-types"
|
|
import { Text, View, Platform } from "react-native"
|
|
import { PhotoPanel } from "."
|
|
|
|
export class FormStaticPhotoPanel extends React.Component {
|
|
static propTypes = {
|
|
label: PropTypes.string,
|
|
value: PropTypes.arrayOf(PropTypes.string),
|
|
}
|
|
|
|
render() {
|
|
const { label, value, options } = this.props
|
|
|
|
return (
|
|
<View style={{ width: "100%" }}>
|
|
<Text
|
|
style={{
|
|
color: "black",
|
|
fontSize: 14,
|
|
marginBottom: 5,
|
|
}}>
|
|
{label}
|
|
</Text>
|
|
<PhotoPanel value={value} readOnly />
|
|
<Text> </Text>
|
|
</View>
|
|
)
|
|
}
|
|
}
|