Added camera screen + dependencies.
This commit is contained in:
@@ -6,14 +6,19 @@ import Swipeable from "react-native-gesture-handler/Swipeable";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
import styles from "../styles";
|
||||
import { TouchableOpacity } from "react-native-gesture-handler";
|
||||
|
||||
const RenderRightAction = (props) => {
|
||||
const navigation = useNavigation();
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<View style={[styles.swipe_view, styles.swipe_view_blue]}>
|
||||
<TouchableOpacity
|
||||
style={[styles.swipe_view, styles.swipe_view_blue]}
|
||||
onPress={() => navigation.push("JobCamera")}
|
||||
>
|
||||
<Ionicons name="ios-camera" size={24} color="white" />
|
||||
<Text style={styles.swipe_text}>{t("joblist.actions.swipecamera")}</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -50,6 +55,10 @@ export default function JobListItem({ item }) {
|
||||
item.v_model_desc || ""
|
||||
}`}</Text>
|
||||
</View>
|
||||
<View style={[{ width: 150 }, localStyles.card_content_margin]}>
|
||||
<Text numberOfLines={1}>{item.ins_co_nm || ""}</Text>
|
||||
<Text>{item.clm_total || ""}</Text>
|
||||
</View>
|
||||
</CardItem>
|
||||
</Card>
|
||||
</Swipeable>
|
||||
@@ -61,4 +70,7 @@ const localStyles = StyleSheet.create({
|
||||
alignItems: "center",
|
||||
},
|
||||
item_header_margin: { marginLeft: 10 },
|
||||
card_content_margin: {
|
||||
marginLeft: 15,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user