From b9b94011c4a8fb0c08bc66c2f09dfbf1db5fed28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Rodriguez=20Ve=CC=81lez?= Date: Wed, 27 Feb 2019 19:45:44 -0500 Subject: [PATCH] FIX: Disable third party keyboard on iOS FIX: Disable suggestions on android --- BlueComponents.js | 15 +++++++++++++++ ios/BlueWallet/AppDelegate.m | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/BlueComponents.js b/BlueComponents.js index 744e425bf..2d5565c60 100644 --- a/BlueComponents.js +++ b/BlueComponents.js @@ -339,6 +339,17 @@ export class BlueFormInput 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() { return ( ); } diff --git a/ios/BlueWallet/AppDelegate.m b/ios/BlueWallet/AppDelegate.m index 36478a7fd..4c27825ff 100644 --- a/ios/BlueWallet/AppDelegate.m +++ b/ios/BlueWallet/AppDelegate.m @@ -42,4 +42,8 @@ return [RCTLinkingManager application:app openURL:url options:options]; } +- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(UIApplicationExtensionPointIdentifier)extensionPointIdentifier { + return NO; +} + @end