Giter Site home page Giter Site logo

Comments (11)

oleksiykh avatar oleksiykh commented on August 17, 2024 8

Same here, or even better can we get the support for multiline? Auto adjust the box as it goes to the next line :)

from react-native-textinput-effects.

rochapablo avatar rochapablo commented on August 17, 2024 2

I don't know what I was doing wrong, because I though had tried everything. But now I made it!

<Hideo
            iconSize={HideoStyle.size.icon}
            height={HideoStyle.size.input}
            inputStyle={[HideoStyle.input]}
            style={HideoStyle.container}
          />
const height = 37;

HideoStyle = {
    container: {
        marginVertical: 5, 
        borderRadius: 4,
        borderStyle: 'solid',
        borderWidth: 2,
        borderColor: Color.mercury,
        backgroundColor: Color.white,
        flex: 0,
        height: 'auto',
        overflow: 'hidden'
    },
    input: {
        height: height,
        backgroundColor: Color.white,
        fontWeight: '600',
        fontSize: 11,
    },
    size: {
        input: height,
        icon: 20
    }
}

from react-native-textinput-effects.

gotoAndBliss avatar gotoAndBliss commented on August 17, 2024

+1

from react-native-textinput-effects.

alexhhn avatar alexhhn commented on August 17, 2024

+1

from react-native-textinput-effects.

ykcai avatar ykcai commented on August 17, 2024

+1 would love to have multiline support

from react-native-textinput-effects.

tudoanh avatar tudoanh commented on August 17, 2024

It'd be so nice to support multipleline.
Love this lib btw.

from react-native-textinput-effects.

yash2code avatar yash2code commented on August 17, 2024

same, how to adjust height ? anyone able to resolved this?

from react-native-textinput-effects.

yash2code avatar yash2code commented on August 17, 2024

Only one solution found:

Goto the file (for eg. kaede.js if you are using kaede) in node modules, change height from there !

from react-native-textinput-effects.

rochapablo avatar rochapablo commented on August 17, 2024

+1

I would like to adjust for Hideo, making the input smaller.

Image

<View style={styles.inputMain}>
<Hideo
    iconClass={FontAwesomeIcon}
    iconName="id-card-o"
    iconColor="#7f7f80"
    iconSize={18}
    iconBackgroundColor="#ffffff"
    iconStyle={{ display: 'none' }}
    inputStyle={styles.input}
    style={styles.inputContainer}
    inputHeight={26}
    placeholder="NOME COMPLETO"
/>
</View>
<View style={styles.inputMain}>
<Hideo
    iconClass={FontAwesomeIcon}
    iconName="id-card-o"
    iconColor="#7f7f80"
    iconSize={18}
    iconBackgroundColor="#ffffff"
    inputStyle={styles.input}              
    placeholder="NOME COMPLETO"
/>
</View>
const styles = StyleSheet.create({
  inputMain: {
    borderRadius: 4,
    borderStyle: 'solid',
    borderWidth: 2,
    borderColor: '#e3e3e3',
    /*padding: 1,*/
    marginBottom: 15,
    overflow: 'hidden',
    height: 26,
    alignContent: 'flex-start',
    alignItems: 'flex-start',
    alignSelf:  'flex-start',
  },
  inputContainer: {
    flex: 1,
    backgroundColor: 'red',
    padding: 1,
    alignContent: 'flex-start',
    alignItems: 'flex-start',
    alignSelf:  'flex-start'
  },
  input: {
    height: 26,
    width: 200,
    fontSize: 12,
    justifyContent: 'center',
    alignItems: 'center'
  },
});

from react-native-textinput-effects.

DavidTatis avatar DavidTatis commented on August 17, 2024

if you want to change height, fontSize, Color, etc. you can go to: node_modules/react-native-textinput-effects\lib, open the .JS file effect you are using, for example Hoshi.js. There you can edit the styles.
for example Hoshi.js:

const styles = StyleSheet.create({
  container: {
    borderBottomWidth: 2,
    borderBottomColor: '#b9c1ca',
  },
  labelContainer: {
    position: 'absolute',
  },
  label: {
    fontSize: 20,
    color: '#000000',
  },

from react-native-textinput-effects.

halilb avatar halilb commented on August 17, 2024

There isn't a generic solution I can apply for all components for changing the height as it's highly coupled with the animation. And changing input height would break some of those animations.

So I suggest forking the repository and applying your customizations directly on the input to make it work without breaking the animation.

from react-native-textinput-effects.

Related Issues (20)

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.