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'; | |
| class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| items: [], | |
| title: '', | |
| selectedItemId: null |
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
| async componentDidUpdate(prevProps, prevState) { | |
| const accountCode = this.props.accountCode; | |
| if (accountCode !== prevProps.accountCode) { | |
| let header = await Auth.header(); | |
| const data = await fetch(`${global.bpmApiUrl}/logo-tedarikciler?cariHesapKodu=${accountCode}`, {headers: header}) | |
| .then(response => response.json()); | |
| if (data.length > 0) { |
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, {Component} from 'react'; | |
| import {StyleSheet, View, FlatList} from 'react-native'; | |
| import {SearchBar} from 'react-native-elements'; | |
| import ListItem from '../components/ListItem'; | |
| import Config from "../Config"; | |
| export default class DemandListScreen extends Component { | |
| constructor(props) { |
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 express = require('express'); | |
| const router = express.Router(); | |
| const data = [ | |
| {id: 1, title: 'Finalize project', order: 1, completed: false, createdOn: new Date()}, | |
| {id: 2, title: 'Book ticket to London', order: 2, completed: false, createdOn: new Date()}, | |
| {id: 3, title: 'Finish last article', order: 3, completed: false, createdOn: new Date()}, | |
| {id: 4, title: 'Get a new t-shirt', order: 4, completed: false, createdOn: new Date()}, | |
| {id: 5, title: 'Create dinner reservation', order: 5, completed: false, createdOn: new Date()}, | |
| ]; |