react-native-external-keyboard 0.6.8 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,8 @@ using namespace facebook::react;
21
21
  + (void)onKeyDownPressEventEmmiter:(NSDictionary*) dictionary withEmitter:(facebook::react::SharedViewEventEmitter) _eventEmitter {
22
22
  if (_eventEmitter) {
23
23
  auto viewEventEmitter = std::static_pointer_cast<ExternalKeyboardViewEventEmitter const>(_eventEmitter);
24
-
24
+
25
+ NSString* unicodeChar = [dictionary valueForKey:@"unicodeChar"];
25
26
  facebook::react::ExternalKeyboardViewEventEmitter::OnKeyDownPress data = {
26
27
  .keyCode = [[dictionary valueForKey:@"keyCode"] intValue],
27
28
  .isLongPress = [[dictionary valueForKey:@"isLongPress"] boolValue],
@@ -31,7 +32,7 @@ using namespace facebook::react;
31
32
  .isCapsLockOn = [[dictionary valueForKey:@"isCapsLockOn"] boolValue],
32
33
  .hasNoModifiers = [[dictionary valueForKey:@"hasNoModifiers"] boolValue],
33
34
  .unicode = [[dictionary valueForKey:@"unicode"] intValue],
34
- .unicodeChar = [[[dictionary valueForKey:@"unicodeChar"] stringValue] UTF8String],
35
+ .unicodeChar = [unicodeChar UTF8String],
35
36
  };
36
37
  viewEventEmitter->onKeyDownPress(data);
37
38
  };
@@ -40,7 +41,8 @@ using namespace facebook::react;
40
41
  + (void)onKeyUpPressEventEmmiter:(NSDictionary*) dictionary withEmitter:(facebook::react::SharedViewEventEmitter) _eventEmitter {
41
42
  if (_eventEmitter) {
42
43
  auto viewEventEmitter = std::static_pointer_cast<ExternalKeyboardViewEventEmitter const>(_eventEmitter);
43
-
44
+
45
+ NSString* unicodeChar = [dictionary valueForKey:@"unicodeChar"];
44
46
  facebook::react::ExternalKeyboardViewEventEmitter::OnKeyUpPress data = {
45
47
  .keyCode = [[dictionary valueForKey:@"keyCode"] intValue],
46
48
  .isLongPress = [[dictionary valueForKey:@"isLongPress"] boolValue],
@@ -50,7 +52,7 @@ using namespace facebook::react;
50
52
  .isCapsLockOn = [[dictionary valueForKey:@"isCapsLockOn"] boolValue],
51
53
  .hasNoModifiers = [[dictionary valueForKey:@"hasNoModifiers"] boolValue],
52
54
  .unicode = [[dictionary valueForKey:@"unicode"] intValue],
53
- .unicodeChar = [[[dictionary valueForKey:@"unicodeChar"] stringValue] UTF8String],
55
+ .unicodeChar = [unicodeChar UTF8String],
54
56
  };
55
57
  viewEventEmitter->onKeyUpPress(data);
56
58
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-external-keyboard",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "Toolkit for improving physical keyboard support in React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -58,14 +58,14 @@
58
58
  "registry": "https://registry.npmjs.org/"
59
59
  },
60
60
  "devDependencies": {
61
- "@commitlint/config-conventional": "^17.0.2",
61
+ "@commitlint/config-conventional": "^19.8.1",
62
62
  "@evilmartians/lefthook": "^1.5.0",
63
63
  "@react-native-community/cli": "15.0.1",
64
64
  "@react-native/eslint-config": "^0.73.1",
65
65
  "@release-it/conventional-changelog": "^10.0.1",
66
66
  "@types/jest": "^29.5.5",
67
67
  "@types/react": "^18.2.44",
68
- "commitlint": "^17.0.2",
68
+ "commitlint": "^19.8.1",
69
69
  "del-cli": "^5.1.0",
70
70
  "eslint": "^8.51.0",
71
71
  "eslint-config-prettier": "^9.0.0",
@@ -75,7 +75,7 @@
75
75
  "react": "18.3.1",
76
76
  "react-native": "0.76.5",
77
77
  "react-native-builder-bob": "^0.20.4",
78
- "release-it": "^19.0.5",
78
+ "release-it": "^19.0.4",
79
79
  "turbo": "^1.10.7",
80
80
  "typescript": "^5.2.2"
81
81
  },