GithubHelp home page GithubHelp logo

zbtang / react-native-textinputlayout Goto Github PK

View Code? Open in Web Editor NEW
104.0 104.0 22.0 142 KB

Pure js implemention material design TextInputLayout component for react-native

License: MIT License

JavaScript 49.71% Python 11.13% Java 8.48% Objective-C 29.66% Shell 1.02%

react-native-textinputlayout's People

Contributors

vonovak avatar zbtang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-textinputlayout's Issues

does not work well when text is pre-set

when the text is pre-set, the floating label stays down.
also consider the case when new text is simply passed as new prop

this might fix the first issue it but I cannot test it very well atm

    _handleChildren(props) {
        let edtChild = React.Children.only(props.children);
        this._oriEdtChild = edtChild;
        this._oriEdtStyle = StyleSheet.flatten([edtChild.props.style])
        this._oriOnFocus = edtChild.props.onFocus;
        this._oriOnBlur = edtChild.props.onBlur;
        this._oriOnChangeText = edtChild.props.onChangeText;
+        const textValue = edtChild.props.value
+        if (textValue) {
+            this._edtText = textValue
+            this.state.showLabel = true
+            this.state.labelAnimationValue = new Animated.Value(1)
+        }
....

isssue with RN 0.68.7

Uploading Screenshot 2024-02-12 at 5.10.03 PM.png…
Error with the package :
error while updating property "underlineColorAndroid" of a view managed by AndroidTextInput.

Getting error to transform view.

Error while updating property 'transform' of a view managed by: RCTText.
When trying to use TextInputLayout.
It was working before but giving this error.

Bottom Bar is Duplicated

When I install your demo app it works fine but, when attempting to integrate it into my own it does not. See in the image below the bottom bar of the text is duplicated...?

  render() {
    return (
      <View style={styles.container}>
        <TextInputLayout style={styles.inputLayout}>
          <TextInput
            style={styles.textInput}
            placeholder={'Password'}
            secureTextEntry={true}
          />
      </TextInputLayout>
    </View>
    );
  }
});

const styles = StyleSheet.create({
  container: {
    flex: 1
  },
  textInput: {
    fontSize: 16,
    marginTop: 20,
    height: 40
  },
  inputLayout: {
    marginTop: 16,
    marginHorizontal: 36
  }
});

image

Custom font for label

can you please add opportunity for adding custom font for label. Right now i copied your TextInputLayout.js and add custom font manually. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.