Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Copy from text IOS not working #25

Open
hadare1 opened this issue Jun 11, 2019 · 15 comments
Open

Copy from text IOS not working #25

hadare1 opened this issue Jun 11, 2019 · 15 comments
Assignees

Comments

@hadare1
Copy link

hadare1 commented Jun 11, 2019

Hi , when I try to use the native "copy from text" in IOS only the first number is copied to the first code segment .

Is there a way to fix this?

IMG_9095

IMG_9096

@gkueny
Copy link
Owner

gkueny commented Jun 11, 2019

Hello @hadare1 ,

This should be fixed in V0.5.0 : https://github.com/gkueny/react-native-pin-code/releases/tag/v0.5.0

Which version do you use ?

@hadare1
Copy link
Author

hadare1 commented Jun 11, 2019

"react-native-pin-code": "^0.5.3",

@gkueny
Copy link
Owner

gkueny commented Jun 11, 2019

I will check your issue as soon as possible :)

Can you give me :

  • IOS version
  • An exemple of how you use PinCode component

@hadare1
Copy link
Author

hadare1 commented Jun 11, 2019

IOS Version is 12.2

         <CodePin
                        ref={ref => (this.ref = ref)}
                        autoFocusFirst
                        number={6}
                        checkPinCode={(code, callback) => callback(this.confirmCode(code))}
                        success={this.onSuccess}
                        keyboardType="numeric"
                        error={"The SMS passcode you have entered is incorrect"}
                        containerStyle={{paddingLeft: 0}}
                        errorStyle={{textAlign: 'left'}}
                        pinStyle={{
                            marginLeft: 0,
                            fontSize: 20,
                            height: getStyleSize(20),
                            backgroundColor: '#FFFFFF',
                            shadowOpacity: 0,
                            borderBottomWidth: 0.5
                        }}
                        text={''}
                        oneTimeCode
                    />

@gkueny gkueny closed this as completed in d3e99e3 Jun 11, 2019
@gkueny gkueny reopened this Jun 11, 2019
@gkueny
Copy link
Owner

gkueny commented Jun 11, 2019

@hadare1 can you try with master branch ?

"react-native-pin-code": "git+ssh://git@github.com/gkueny/react-native-pin-code.git"

@hadare1
Copy link
Author

hadare1 commented Jun 11, 2019

when try to install I get this error :

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/gkueny/react-native-pin-code.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

@gkueny
Copy link
Owner

gkueny commented Jun 11, 2019

maybe : npm i gkueny/react-native-pin-code#master --save

@hadare1
Copy link
Author

hadare1 commented Jun 11, 2019

still the same result

@gkueny
Copy link
Owner

gkueny commented Jun 11, 2019

Okey, I publish a beta version, this should work : npm i react-native-pin-code@beta

@hadare1
Copy link
Author

hadare1 commented Jun 11, 2019

I tried to remove node_modules and reinstall with npm i react-native-pin-code@beta
but still this issue is not resolved.
i tried to have only this component in the layout by itself and still it tries to copy the entire text to the first digit segment.

any thought?

@gkueny
Copy link
Owner

gkueny commented Jun 11, 2019

mmmmh no idea for now, Your case is supposed to be supported (see #12)

I'll try again to reproduce , but I didn't succeed today 😞

@gkueny
Copy link
Owner

gkueny commented Jun 11, 2019

Ok, I have reproduced 😄

@hadare1
Copy link
Author

hadare1 commented Jun 11, 2019

great , please update me when you have a solution :)

@gkueny
Copy link
Owner

gkueny commented Jun 11, 2019

Ok, I've find the issue. For now it's impossible to use react-native-pin-code and oneTimeCode.

I have to rewrite my component. I think to be able to find a solution in the end of the week.

Sorry for the inconvenience

@gkueny gkueny self-assigned this Jun 11, 2019
@hadare1
Copy link
Author

hadare1 commented Jun 11, 2019

Ok, please mark this as closed so I'll be notified.

Thanks

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

No branches or pull requests

2 participants