Skip to content

Commit b08877a

Browse files
coadoj-piaseckim-bert
authored
Apply suggestions from code review
Co-authored-by: Jakub Piasecki <jakubpiasecki67@gmail.com> Co-authored-by: Michał Bert <63123542+m-bert@users.noreply.github.com>
1 parent af47056 commit b08877a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/docs-gesture-handler/docs/guides/testing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ When a gesture object is passed directly, the event payload type is inferred fro
9090
the gesture. Every lifecycle method accepts an optional partial event payload and
9191
fills omitted handler-specific properties with defaults.
9292

93-
The controller exposes these methods:
93+
The controller exposes the following methods:
9494

9595
| Method | Behavior |
9696
| ------------ | ---------------------------------------------------------------------------------------------------------------- |

packages/react-native-gesture-handler/src/handlers/handlersRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function unregisterGesture(handlerTag: number) {
4242

4343
const gesture = hookGestures.get(handlerTag);
4444

45-
if (gesture?.config.testID) {
45+
if (gesture?.config?.testID) {
4646
testIDs.delete(gesture.config.testID);
4747
}
4848

packages/react-native-gesture-handler/src/jestUtils/jestUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ function validateControllerEvent(event: Record<string, unknown>) {
555555
for (const field of FORBIDDEN_CONTROLLER_EVENT_FIELDS) {
556556
invariant(
557557
!hasProperty(event, field),
558-
`createGestureController manages '${field}' internally. Pass only gesture event payload fields.`
558+
`GestureController manages '${field}' internally. Pass only gesture event payload fields.`
559559
);
560560
}
561561
}

0 commit comments

Comments
 (0)