Add room search
This commit is contained in:
parent
e01a2d0aaf
commit
abc77dc253
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"expoServerPort": null,
|
||||
"packagerPort": null,
|
||||
"packagerPid": null
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"hostType": "tunnel",
|
||||
"lanType": "ip",
|
||||
"dev": true,
|
||||
"strict": false,
|
||||
"minify": false,
|
||||
"urlType": "exp",
|
||||
"urlRandomness": null
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { View, FlatList, StyleSheet } from 'react-native';
|
||||
import { View, FlatList, StyleSheet, TextInput } from 'react-native';
|
||||
import realm from '../lib/realm';
|
||||
import RocketChat from '../lib/meteor';
|
||||
|
||||
|
@ -51,6 +51,15 @@ export default class RoomsListView extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<View>
|
||||
<TextInput
|
||||
style={styles.searchBox}
|
||||
value={this.state.text}
|
||||
onChangeText={text => this.setState({ text })}
|
||||
returnKeyType='search'
|
||||
placeholder='Search'
|
||||
/>
|
||||
</View>
|
||||
<FlatList
|
||||
style={styles.list}
|
||||
data={this.state.dataSource}
|
||||
|
|
Loading…
Reference in New Issue