Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced TextInput with Input in StreamBox. #708

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 7 additions & 9 deletions src/compose/ModeViews/StreamBox.js
@@ -1,15 +1,13 @@
import React, { Component } from 'react';
import { View, TextInput, StyleSheet } from 'react-native';
import { View, StyleSheet } from 'react-native';

import { Input } from '../../common';
import { isTopicNarrow } from '../../utils/narrow';
import styles from '../../styles';

const styles = StyleSheet.create({
const moreStyles = StyleSheet.create({
streamInputWrapper: {
flexDirection: 'row', alignItems: 'center', flex: 1
},
topicInput: {
flex: 0.8,
margin: 2
}
});

Expand All @@ -30,10 +28,10 @@ export default class StreamBox extends Component {
render() {
const { operator, setTopic } = this.props;
return (
<View style={styles.streamInputWrapper}>
<TextInput
<View style={moreStyles.streamInputWrapper}>
<Input
ref={component => { this.operandInput = component; }}
style={styles.topicInput}
style={styles.composeText}
placeholder={'Topic'}
onChange={(event) => setTopic(
event.nativeEvent.text
Expand Down