Skip to content

Commit

Permalink
Added methods setToolbarDoneBarButtonItemText and setToolbarManageBeh…
Browse files Browse the repository at this point in the history
…aviour
  • Loading branch information
douglasjunior committed Jul 11, 2017
1 parent 7dbf081 commit 60f9fd6
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 69 deletions.
4 changes: 3 additions & 1 deletion Sample/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ KeyboardManager.setEnableDebugging(true);
KeyboardManager.setKeyboardDistanceFromTextField(10);
KeyboardManager.setPreventShowingBottomBlankSpace(true);
KeyboardManager.setEnableAutoToolbar(true);
KeyboardManager.setToolbarDoneBarButtonItemText("Ok");
KeyboardManager.setToolbarManageBehaviour(0);
KeyboardManager.setShouldToolbarUsesTextFieldTintColor(false);
KeyboardManager.setShouldShowTextFieldPlaceholder(true);
KeyboardManager.setOverrideKeyboardAppearance(false);
Expand Down Expand Up @@ -103,7 +105,7 @@ class SampleKeyboardManager extends Component {

return (
<View style={{ flex: 1 }}>
<View style={{ alignItems: "center", flex: 1 }}>
<View style={{ alignItems: "center" }}>
<Text style={{ marginTop: 50, textAlign: "center" }}>React-Native Keyboard Manager</Text>
<View style={{ marginTop: 10, flexDirection: "row", alignItems: "center" }}>
<Text>Enable/Disable </Text>
Expand Down
5 changes: 5 additions & 0 deletions Sample/ios/SampleKeyboardManager.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@
CreatedOnToolsVersion = 6.2;
TestTargetID = 13B07F861A680F5B00A75B9A;
};
13B07F861A680F5B00A75B9A = {
DevelopmentTeam = B9R372M8X7;
};
2D02E47A1E0B4A5D006451C7 = {
CreatedOnToolsVersion = 8.2.1;
ProvisioningStyle = Automatic;
Expand Down Expand Up @@ -1075,6 +1078,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = B9R372M8X7;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../node_modules/react-native-keyboard-manager/ios/**",
Expand All @@ -1096,6 +1100,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = B9R372M8X7;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../node_modules/react-native-keyboard-manager/ios/**",
Expand Down
Loading

0 comments on commit 60f9fd6

Please sign in to comment.