SectionList on home screen with API
This commit is contained in:
@@ -13,7 +13,13 @@ import { MessageModal } from "../Modal"
|
||||
import autobind from "autobind-decorator"
|
||||
import { SwipeListView } from "react-native-swipe-list-view"
|
||||
import { api } from "../API"
|
||||
import { workItemTypeEnum, formatLatLng, parseLatLng, pad } from "../util"
|
||||
import {
|
||||
workItemTypeEnum,
|
||||
workItemTypeText,
|
||||
formatLatLng,
|
||||
parseLatLng,
|
||||
pad,
|
||||
} from "../util"
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
@@ -24,11 +30,6 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
})
|
||||
|
||||
const workItemTypeText = workItemTypeEnum.reduce((result, item) => {
|
||||
result[item.value] = item.text
|
||||
return result
|
||||
}, {})
|
||||
|
||||
export class WorkItemList extends React.Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
|
||||
Reference in New Issue
Block a user