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

Warning; Failed prop type ; ConfirmationCodeInput #8

Open
LiorBraginsky opened this issue Jul 14, 2020 · 7 comments
Open

Warning; Failed prop type ; ConfirmationCodeInput #8

LiorBraginsky opened this issue Jul 14, 2020 · 7 comments

Comments

@LiorBraginsky
Copy link

Warning: Failed prop type: Invalid prop inputComponent of type object supplied to ConfirmationCodeInput, expected function.

I can’t understand if I did everything right?
I can not remove this warning
Explain what is wrong, please

P.S. Component is work correct

Снимок экрана 2020-07-14 в 20 14 44
Снимок экрана 2020-07-14 в 20 14 53
Снимок экрана 2020-07-14 в 20 15 14

@obsidianart
Copy link

obsidianart commented Jan 18, 2021

add

inputComponent={()=>TextInput}

            <CodeInput
              secureTextEntry
              codeLength={6}
              borderType='circle'
              autoFocus={true}
              codeInputStyle={{ fontWeight: '800' }}
              onFulfill={()=>{}
              inputComponent={()=>TextInput}
            />

To remove the warning. Remember to import Text input from react-native

 import { TextInput } from 'react-native'

@ezengold
Copy link

Still not working even when I add inputComponent={() => TextInput}
I tried inputComponent={() => <TextInput />} but I got q ref warning.

Capture d’écran du 2021-02-24 14-39-51

@stuart201
Copy link

Having this same issue, any Fix?
I'm not so worried because the warning doesn't stop my app from functioning but it definitely concerns me

@stuart201
Copy link

add

inputComponent={()=>TextInput}

            <CodeInput
              secureTextEntry
              codeLength={6}
              borderType='circle'
              autoFocus={true}
              codeInputStyle={{ fontWeight: '800' }}
              onFulfill={()=>{}
              inputComponent={()=>TextInput}
            />

To remove the warning. Remember to import Text input from react-native

 import { TextInput } from 'react-native'

Did not work for me. Instead threw error "Error: Objects are not valid as a React child"

@zaidbat
Copy link

zaidbat commented Nov 19, 2021

add

inputComponent={()=>TextInput}

            <CodeInput
              secureTextEntry
              codeLength={6}
              borderType='circle'
              autoFocus={true}
              codeInputStyle={{ fontWeight: '800' }}
              onFulfill={()=>{}
              inputComponent={()=>TextInput}
            />

To remove the warning. Remember to import Text input from react-native

 import { TextInput } from 'react-native'

Did not work for me. Instead threw error "Error: Objects are not valid as a React child"

Did it work for you eventually ?

@Devmaleeq
Copy link

Devmaleeq commented Jan 3, 2023

Any luck solving this issue? I still have this error too.

image

@Devmaleeq
Copy link

Is anyone still using this library? I found a fix for this and I'll be doing a PR today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants