Skip to content

Commit 60f9fd6

Browse files
committed
Added methods setToolbarDoneBarButtonItemText and setToolbarManageBehaviour
1 parent 7dbf081 commit 60f9fd6

File tree

4 files changed

+101
-69
lines changed

4 files changed

+101
-69
lines changed

Sample/index.ios.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ KeyboardManager.setEnableDebugging(true);
4040
KeyboardManager.setKeyboardDistanceFromTextField(10);
4141
KeyboardManager.setPreventShowingBottomBlankSpace(true);
4242
KeyboardManager.setEnableAutoToolbar(true);
43+
KeyboardManager.setToolbarDoneBarButtonItemText("Ok");
44+
KeyboardManager.setToolbarManageBehaviour(0);
4345
KeyboardManager.setShouldToolbarUsesTextFieldTintColor(false);
4446
KeyboardManager.setShouldShowTextFieldPlaceholder(true);
4547
KeyboardManager.setOverrideKeyboardAppearance(false);
@@ -103,7 +105,7 @@ class SampleKeyboardManager extends Component {
103105

104106
return (
105107
<View style={{ flex: 1 }}>
106-
<View style={{ alignItems: "center", flex: 1 }}>
108+
<View style={{ alignItems: "center" }}>
107109
<Text style={{ marginTop: 50, textAlign: "center" }}>React-Native Keyboard Manager</Text>
108110
<View style={{ marginTop: 10, flexDirection: "row", alignItems: "center" }}>
109111
<Text>Enable/Disable </Text>

Sample/ios/SampleKeyboardManager.xcodeproj/project.pbxproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,9 @@
607607
CreatedOnToolsVersion = 6.2;
608608
TestTargetID = 13B07F861A680F5B00A75B9A;
609609
};
610+
13B07F861A680F5B00A75B9A = {
611+
DevelopmentTeam = B9R372M8X7;
612+
};
610613
2D02E47A1E0B4A5D006451C7 = {
611614
CreatedOnToolsVersion = 8.2.1;
612615
ProvisioningStyle = Automatic;
@@ -1075,6 +1078,7 @@
10751078
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
10761079
CURRENT_PROJECT_VERSION = 1;
10771080
DEAD_CODE_STRIPPING = NO;
1081+
DEVELOPMENT_TEAM = B9R372M8X7;
10781082
HEADER_SEARCH_PATHS = (
10791083
"$(inherited)",
10801084
"$(SRCROOT)/../node_modules/react-native-keyboard-manager/ios/**",
@@ -1096,6 +1100,7 @@
10961100
buildSettings = {
10971101
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
10981102
CURRENT_PROJECT_VERSION = 1;
1103+
DEVELOPMENT_TEAM = B9R372M8X7;
10991104
HEADER_SEARCH_PATHS = (
11001105
"$(inherited)",
11011106
"$(SRCROOT)/../node_modules/react-native-keyboard-manager/ios/**",

0 commit comments

Comments
 (0)