Commit c5b03f0c authored by Martin Santangelo's avatar Martin Santangelo
Browse files

Merge branch 'release/3.9.0' into feat/improve-error-handling-logging-api-service

parents 45b88e6b ec374fb6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -86,7 +86,6 @@ public class MainApplication extends Application implements ShareApplication, Re
          new ShareMenuPackage(),
          new RNMediaMetaPackage(),
          new RNFSPackage(),
          new JitsiMeetPackage(),
          new SQLitePluginPackage(),
          new BackgroundTimerPackage()
      );
+4 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ import {
  FlatList,
  Keyboard,
  Platform,
  TextInput,
  // TextInput,
  TouchableOpacity,
  TouchableHighlight,
  ActivityIndicator,
@@ -38,6 +38,9 @@ import i18n from '../common/services/i18n.service';
import blockListService from '../common/services/block-list.service';
import autobind from "../common/helpers/autobind";

// workaround for android copy/paste issue
import TextInput from '../common/components/TextInput';

// types
type Props = {
  header?: any,
+19 −4
Original line number Diff line number Diff line
@@ -73,6 +73,8 @@ export default class TagInput extends Component {
  render() {
    let tags = null;
    const autoFocus = this.props.noAutofocus ? false : true;
    const ViewCmp = this.props.noScroll ? View : ScrollView;

    if (!this.props.hideTags) {
      tags = <View style={styles.tagContainer}>
        {this.props.tags.map((t,i) => <View style={styles.tag} key={i} >
@@ -82,14 +84,14 @@ export default class TagInput extends Component {
      </View>
    }
    return (
      <ScrollView keyboardShouldPersistTaps={'always'}>
      <ViewCmp keyboardShouldPersistTaps={'always'}>
        {tags}
        {this.state.error ? <Text style={styles.error}>{this.state.error}</Text> : null}
        <TextInput
          autoCapitalize="none"
          autoFocus={autoFocus}
          style={{height: 35, width: '100%', borderColor: '#ccc', borderBottomWidth: 1, padding: 10}}
          ref={r => this.inputRef = r}
          style={styles.input}
          ref={this.setInputRef}
          value={this.state.text}
          blurOnSubmit={false}
          onChangeText={this.onChangeText}
@@ -99,14 +101,27 @@ export default class TagInput extends Component {
          onSubmitEditing={this.addTag}
          onEndEditing={this.addTag}
        />
      </ScrollView>
      </ViewCmp>

    );
  }

  /**
   * Set input ref
   * @param {TextInputRef} r
   */
  setInputRef = r => this.inputRef = r;
}


const styles = StyleSheet.create({
  input: {
    height: 35,
    width: '100%',
    borderColor: '#ccc',
    borderBottomWidth: 1,
    padding: 10
  },
  error: {
    fontFamily: 'Roboto',
    color: 'red',
+1 −0
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ export default class TagOptinDrawer extends Component {
          </ScrollView>
          <View style={styles.inputContainer}>
            <TagInput
              noScroll
              noAutofocus={true}
              hideTags={true}
              tags={this.props.hashtag.suggested.map(m => m.value)}
+0 −1
Original line number Diff line number Diff line
@@ -73,7 +73,6 @@ class LogService {
      Sentry.captureException(error);
    }


    let stack = null;
    if (__DEV__) {
      stack = parseErrorStack(error);
Loading