diff --git a/example/examples/Advanced.js b/example/examples/Advanced.js deleted file mode 100644 index 6674a1a..0000000 --- a/example/examples/Advanced.js +++ /dev/null @@ -1,108 +0,0 @@ -import React, { Component } from 'react'; -import { Button, View, StyleSheet, ScrollView, Text, TouchableOpacity } from 'react-native'; -import SearchInput, { createFilter } from 'react-native-search-filter'; -import DeviceInfo from 'react-native-device-info'; -import DatePicker from 'react-native-date-picker-x'; -import locales from '../locales'; - -Date.prototype.addHours = function (h) { - this.setTime(this.getTime() + (h * 60 * 60 * 1000)); - return this; -} - -export default class Advanced extends Component { - - state = { - chosenDate: new Date(), - searchTerm: '', - locale: DeviceInfo.getDeviceLocale(), - textColor: '#000000', - } - - render() { - const result = locales.filter(createFilter(this.state.searchTerm)).slice(0, 5); - return ( - - - - Current locale: {this.state.locale} - Current date: {this.state.chosenDate.toISOString()} - - -