This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data":{ | |
| "getBillRegisters":[ | |
| { | |
| "billPayId":"17520f30-d7ed-4cbc-a527-240b063c2e28", | |
| "specialSchoolOrgId":"56466515-8770-4db8-930e-5780c5482c2b", | |
| "billType":"PURCHASE", | |
| "financialYear":"2022-23", | |
| "specialSchoolName":"Kahaniya", | |
| "billDate":"2011-10-17T00:00:00.000Z", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const renderUsersItem = ({ item }) => { | |
| if (!item) { | |
| return null; | |
| } | |
| const handlerLongClick = (id) => { | |
| console.log(id) | |
| } | |
| const [first, last] = item.name.split(' '); | |
| return ( | |
| <TouchableOpacity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ScrollView | |
| horizontal={true} | |
| nestedScrollEnabled={true} | |
| style={{ backgroundColor: '#fff', marginTop: 4,marginLeft:20 }} | |
| > | |
| <View style={{ flexDirection: 'column' }}> | |
| <TableHeader /> | |
| <FlatList | |
| data={mockDB} | |
| renderItem={renderUsersItem} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import {View,Text,StyleSheet} from 'react-native' | |
| import { color } from 'react-native-reanimated' | |
| const TableHeader=()=> { | |
| return ( | |
| <View style={styles.tableHeading}> | |
| <Text style={styles.tableHeadingText}>Name</Text> | |
| <Text style={styles.tableHeadingText}>Address</Text> | |
| <Text style={styles.tableHeadingText}>Contact</Text> | |
| <Text style={styles.tableHeadingTextStatus}>Tags</Text> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { list } from '@keystone-6/core'; | |
| import { password, select, text } from '@keystone-6/core/fields'; | |
| export const User = list({ | |
| fields: { | |
| name: text({ validation: { isRequired: true } }), | |
| email: text({ | |
| validation: { isRequired: true }, | |
| isIndexed: 'unique', | |
| isFilterable: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { list, graphql } from '@keystone-6/core'; | |
| import { | |
| text, | |
| virtual, | |
| } from '@keystone-6/core/fields'; | |
| export const Producer = list({ | |
| fields: { | |
| firstName: text({ validation: { isRequired: true }, isFilterable: true }), | |
| middleName: text({ isFilterable: true }), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { list } from '@keystone-6/core'; | |
| import { select, relationship, text, timestamp } from '@keystone-6/core/fields'; | |
| export const lists = { | |
| Post: list({ | |
| fields: { | |
| title: text({ validation: { isRequired: true } }), | |
| status: select({ | |
| type: 'enum', | |
| options: [ |