- npm install apollo
- npx apollo schema:download schema.json --endpoint=https://localhost:1337/graphql
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
| 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
| 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
| 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
| 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
| 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
| 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
| 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
| While developing your app, if sometime you don't see the push notification when the app is killed, you must close your app, then let's open again by tap on the app's icon on the Launcher. | |
| Then close it by swipe off. You will see the magic. |