import _ from 'lodash'; import React, {Component} from 'react'; import {Alert, StyleSheet} from 'react-native'; import {Colors, Typography, View, ActionBar, PageControl, Carousel} from 'react-native-ui-lib'; //eslint-disable-line import cameraSelected from '../../assets/icons/cameraSelected.png'; import video from '../../assets/icons/video.png'; import tags from '../../assets/icons/tags.png'; import collections from '../../assets/icons/collections.png'; import richText from '../../assets/icons/richText.png'; export default class ActionBarScreen extends Component { state = { currentPage: 0 }; render() { return ( this.setState({currentPage})} initialPage={this.state.currentPage} > Alert.alert('delete'), $textDangerLight: true}, {label: 'Replace Photo', onPress: () => Alert.alert('replace photo')}, {label: 'Edit', onPress: () => Alert.alert('edit')} ]} /> Alert.alert('hide'), $textDefaultLight: true}, {label: 'Add Discount', onPress: () => Alert.alert('add discount'), $textDefaultLight: true}, {label: 'Duplicate', onPress: () => Alert.alert('duplicate'), $textDefaultLight: true} ]} /> ({ iconSource, iconStyle: {width: 25} }))} /> ); } } const styles = StyleSheet.create({ page: { flex: 1 }, pageControl: { zIndex: 1 }, absoluteContainer: { position: 'absolute', bottom: 150, left: 0, right: 0 } });