Code Monkey home page Code Monkey logo

Comments (11)

mMarcos208 avatar mMarcos208 commented on May 29, 2024 1

@lukewalczak expo example https://snack.expo.dev/@mbarroso208/curious-blue-churros

from react-native-paper.

lukewalczak avatar lukewalczak commented on May 29, 2024 1

Hey @mMarcos208, please also pass onLayout from render props to the TextInputMask, it should solve your problem:

      render={({value, onFocus, style, onLayout}) => (
        <TextInputMask
          returnKeyType="done"
          value={value}
          style={style}
          onFocus={onFocus}
          onLayout={onLayout}
          type="custom"
        />
      )}

Here you can find your modified snack

from react-native-paper.

lukewalczak avatar lukewalczak commented on May 29, 2024 1

I see, it should be released in 5.11.7.

from react-native-paper.

github-actions avatar github-actions commented on May 29, 2024

Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.

from react-native-paper.

mMarcos208 avatar mMarcos208 commented on May 29, 2024

Only this code.

<TextInput
      error={!!error}
      focusable
      label="Quantidade"
      showSoftInputOnFocus
      returnKeyType="done"
      mode="outlined"
      render={({value, onChangeText, onFocus, onBlur, style}) => (
        <TextInputMask
          maxLength={inputProps.maxLength}
          returnKeyType="done"
          editable={inputProps.editable}
          value={value}
          style={style}
          onChangeText={(text) => {
            onChangeText?.(text)
            onChange?.(text)
          }}
          onFocus={onFocus}
          onBlur={(event) => {
            inputProps.onBlur?.(event)
            onBlur?.(event)
          }}
          {...maskProps}
        />
      )}
    />

from react-native-paper.

lukewalczak avatar lukewalczak commented on May 29, 2024

Hey @mMarcos208 could you please create an expo snack?

from react-native-paper.

ad-walker avatar ad-walker commented on May 29, 2024

Ran into the same issue with outlined TextInput components which implemented the render method, when upgrading to v5.11.0.

from react-native-paper.

lukewalczak avatar lukewalczak commented on May 29, 2024

@ad-walker could you please share your issue details?

from react-native-paper.

mMarcos208 avatar mMarcos208 commented on May 29, 2024

@lukewalczak could you add this prop?

from react-native-paper.

lukewalczak avatar lukewalczak commented on May 29, 2024

@lukewalczak could you add this prop?

What do you mean?

from react-native-paper.

mMarcos208 avatar mMarcos208 commented on May 29, 2024

@lukewalczak could you add this prop?

What do you mean?

typescript prop. I need to add ts-ignore in my file.

from react-native-paper.

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.