Skip to content

Commit 0c2fea5

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
fix syntax error (facebook#45058)
Summary: Pull Request resolved: facebook#45058 changelog: [internal] Fix github action failure: ``` TransformError [SyntaxError]: /__w/react-native/react-native/packages/react-native/Libraries/Text/Text.js: Missing semicolon. (345:1) 343 | ? require('./TextOptimized') 344 | : Text > 345 | ) as typeof Text; ``` Reviewed By: fabriziocucci Differential Revision: D58779125 fbshipit-source-id: 76917aebf8ae8cfb9f2aa7a75a76383c5a832732
1 parent 58ff2fc commit 0c2fea5

File tree

1 file changed

+3
-5
lines changed
  • packages/react-native/Libraries/Text

1 file changed

+3
-5
lines changed

packages/react-native/Libraries/Text/Text.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ const verticalAlignToTextAlignVerticalMap = {
338338
middle: 'center',
339339
};
340340

341-
module.exports = (
342-
ReactNativeFeatureFlags.shouldUseOptimizedText()
343-
? require('./TextOptimized')
344-
: Text
345-
) as typeof Text;
341+
module.exports = ((ReactNativeFeatureFlags.shouldUseOptimizedText()
342+
? require('./TextOptimized')
343+
: Text): typeof Text);

0 commit comments

Comments
 (0)