https://medium.com/swift-programming/swift-caveats-for-structs-as-data-models-8299d84b49dc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Open terminal app: | |
| alias android-avd="emulator -avd Nexus_5X_API_29_x86 &" | |
| alias ios-simulator="open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/" | |
| Then just run android-avd or ios-simulator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In React Native context | |
| render() { | |
| return <WebView onNavigationStateChange={this.onNavigationStateChange} /> | |
| } | |
| onNavigationStateChange = (e) => { | |
| // allow normal the natvigation | |
| let allowChanged = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://romannurik.github.io/AndroidAssetStudio/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://blog.bam.tech/developper-news/add-a-custom-font-to-your-react-native-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You have already added your SSH key to Gitlab account and it's working well but sometime when you join to new repository and it raised an error like below: | |
| Permission denied (publickey). | |
| You can fix this issue by Add all known keys to the SSH agent: | |
| ssh-add -A | |
| Now this works but it won’t persist across reboots. So if you want to never worry about this again, just open up your user’s ~/.bash_profile file like this: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { | |
| View, | |
| Animated, | |
| FlatList, | |
| } from 'react-native' | |
| export default class App extends React.Component { | |
| state = { | |
| shouldShowStickyHeader: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Install ffmpeg through Brew using brew install ffmpeg | |
| 2. Open termial and run: | |
| ffmpeg -i /path/to/input/file /path/to/output.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When you see Red Box with stack trace, you can click any | |
| stack frame to jump to the source file. The packager will launch your | |
| editor of choice. It will first look at REACT_EDITOR environment | |
| variable, then at EDITOR. To set it up, you can add something like | |
| export REACT_EDITOR=atom to your ~/.bashrc or ~/.zshrc depending on | |
| which shell you use. | |
| VScode supports a command to isntall quickly: | |
| > Shell Command: Install 'code' command in PATH command. | |
| (https://code.visualstudio.com/docs/setup/mac) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| For Xcode 8.2 or later | |
| You can take videos and screenshots of Simulator using the xcrun Xcode command-line utility. | |
| 1. Run your app on the simulator. | |
| 2. Open Terminal.app | |
| 3. Run the command | |
| - To take a screenshot, xcrun simctl io booted screenshot | |
| - To take a video, xcrun simctl io booted recordVideo <filename>.<file extension>. | |
| For example: xcrun simctl io booted recordVideo appvideo.mov |