mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-03 20:07:11 +01:00
FIX: Disable third party keyboard on iOS
FIX: Disable suggestions on android
This commit is contained in:
parent
e93bfa656b
commit
b9b94011c4
2 changed files with 19 additions and 0 deletions
|
@ -339,6 +339,17 @@ export class BlueFormInput extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class BlueFormMultiInput extends Component {
|
export class BlueFormMultiInput extends Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
selection: { start: 0, end: 0 },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
onSelectionChange = ({ nativeEvent: { selection, text } }) => {
|
||||||
|
this.setState({ selection: { start: selection.end, end: selection.end } });
|
||||||
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<TextInput
|
<TextInput
|
||||||
|
@ -360,6 +371,10 @@ export class BlueFormMultiInput extends Component {
|
||||||
autoCapitalize="none"
|
autoCapitalize="none"
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
{...this.props}
|
{...this.props}
|
||||||
|
selectTextOnFocus={false}
|
||||||
|
onSelectionChange={this.onSelectionChange}
|
||||||
|
selection={this.state.selection}
|
||||||
|
keyboardType={Platform.OS === 'android' ? 'visible-password' : 'default'}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,4 +42,8 @@
|
||||||
return [RCTLinkingManager application:app openURL:url options:options];
|
return [RCTLinkingManager application:app openURL:url options:options];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(UIApplicationExtensionPointIdentifier)extensionPointIdentifier {
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Reference in a new issue