Skip to content

Commit 9c353b5

Browse files
sweatherallfacebook-github-bot
authored andcommitted
Fix typo in invariant message (#29913)
Summary: Fix a typo in the invariant message presented when ActionSheetManager does not exist (typo was found in 2 places) ## Changelog [General] [Fixed] - Fix typo in invariant message Pull Request resolved: #29913 Test Plan: Run ActionSheetIOS.showActionSheetWithOptions(...) on an Android emulator to get this invariant message to appear. Reviewed By: hramos Differential Revision: D23691048 Pulled By: appden fbshipit-source-id: 469db65a42bf547c7818b45729befa214b5791f2
1 parent 135993b commit 9c353b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/ActionSheetIOS/ActionSheetIOS.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const ActionSheetIOS = {
5757
'Options must be a valid object',
5858
);
5959
invariant(typeof callback === 'function', 'Must provide a valid callback');
60-
invariant(RCTActionSheetManager, "ActionSheetManager does't exist");
60+
invariant(RCTActionSheetManager, "ActionSheetManager doesn't exist");
6161

6262
const {tintColor, destructiveButtonIndex, ...remainingOptions} = options;
6363
let destructiveButtonIndices = null;
@@ -123,7 +123,7 @@ const ActionSheetIOS = {
123123
typeof successCallback === 'function',
124124
'Must provide a valid successCallback',
125125
);
126-
invariant(RCTActionSheetManager, "ActionSheetManager does't exist");
126+
invariant(RCTActionSheetManager, "ActionSheetManager doesn't exist");
127127
RCTActionSheetManager.showShareActionSheetWithOptions(
128128
{...options, tintColor: processColor(options.tintColor)},
129129
failureCallback,

0 commit comments

Comments
 (0)