Command:
git --no-pager show -s --date=local --pretty=format:"- %h (%ae) %s%n"
Output:
- dcd509e ([email protected]) fix(ios): commit message
| # SOURCE: https://github.com/facebook/hermes/blob/main/.github/workflows/build.yml#L544 | |
| # in the terminal, run the below command | |
| emulator -avd AVD_NAME -timezone Europe/Paris -no-snapshot-save -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| #in the different terminal | |
| rm -rf build build_android staging | |
| export HERMES_WS_DIR=/Users/nick/xxxx/xxx | |
| cd $HERMES_WS_DIR |
| // JS | |
| BatchedBridge.registerCallableModule('JavaScriptVisibleToJava', { | |
| alert: () => { | |
| console.log('JavaScriptVisibleToJava'); | |
| }, | |
| }); | |
| //iOS | |
| [self.bridge enqueueJSCall:@"JavaScriptVisibleToJava" method:@"alert" args:@[] completion:NULL]; |
| const fs = require('fs'); | |
| const { exec } = require('child_process'); | |
| function execute(command, callback) { | |
| exec(command, function (error, stdout, stderr) { | |
| if (stderr || error) { | |
| // console.log(`🚀🚀🚀🚀🚀🚀🚀🚀 ${stderr} ${error}`); | |
| } else { | |
| callback(stdout); | |
| } |
Command:
git --no-pager show -s --date=local --pretty=format:"- %h (%ae) %s%n"
Output:
- dcd509e ([email protected]) fix(ios): commit message
| { | |
| "type": "TypeCastExpression", | |
| "loc": { | |
| "source": null, | |
| "start": { | |
| "line": 57, | |
| "column": 41 | |
| }, | |
| "end": { | |
| "line": 64, |
| const regex = /(^\-?0[\,\.][0-9]{1,}$)|(^\-?[1-9][0-9]{1,}$)|(^[0-9]$)|(^\-?[1-9][0-9]{0,}[\,\.][0-9]{1,}$)|(^\-?[1-9]$)/gm; | |
| const str = `01 | |
| 001 | |
| 033 | |
| 0000033 | |
| 00000.2 | |
| 00000000000000 | |
| 01010101010 | |
| 0000.0 | |
| aaa |
| const regex = /(^0[\,\.][0-9]{1,}$)|(^[1-9][0-9]{1,}$)|(^[0-9]$)|(^[1-9][0-9]{0,}[\,\.][0-9]{1,}$)/gm; | |
| const str = `01 | |
| 001 | |
| 033 | |
| 0000033 | |
| 00000.2 | |
| 00000000000000 | |
| 01010101010 | |
| 0000.0 | |
| aaa |
| UIPageControl *pageIndicatorView = [[UIPageControl alloc] init]; | |
| pageIndicatorView.translatesAutoresizingMaskIntoConstraints = NO; | |
| NSLayoutConstraint *bottomConstraint = [pageIndicatorView.bottomAnchor constraintEqualToAnchor: self.view.bottomAnchor constant:0]; | |
| NSLayoutConstraint *leadingConstraint = [pageIndicatorView.leadingAnchor constraintEqualToAnchor: self.view.leadingAnchor constant:0]; | |
| NSLayoutConstraint *trailingConstraint = [pageIndicatorView.trailingAnchor constraintEqualToAnchor: self.view.trailingAnchor constant:0]; | |
| [self.view addConstraints:@[bottomConstraint,leadingConstraint,trailingConstraint]]; | |
| [self.view layoutIfNeeded]; |
| #import <React/RCTViewManager.h> | |
| #import <React/RCTUIManager.h> | |
| #import <React/RCTLog.h> | |
| RCT_EXPORT_METHOD(goToPreviousPage:(nonnull NSNumber*) reactTag) { | |
| [self.bridge.uiManager addUIBlock:^(RCTUIManager *uiManager, NSDictionary<NSNumber *,UIView *> *viewRegistry) { | |
| NativeView *view = viewRegistry[reactTag]; | |
| if (!view || ![view isKindOfClass:[NativeView class]]) { | |
| RCTLogError(@"Cannot find NativeView with tag #%@", reactTag); | |
| return; | |
| } |
| class MyNativeView extends React.Component<Props> { | |
| goToNextPage = () => { | |
| UIManager.dispatchViewManagerCommand( | |
| ReactNative.findNodeHandle(this), | |
| UIManager.getViewManagerConfig('RNCMyNativeView').Commands.goToNextPage, | |
| [] | |
| ); | |
| }; | |
| goToPreviousPage = () => { |