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
| ./ngrok http https://0.0.0.0:443 |
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
| # react-native-async-storage | |
| ## Backup | |
| - https://react-native-async-storage.github.io/async-storage/docs/advanced/backup/ | |
| - ^ but this thing needs ios capabilities??? |
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
| # Install rbenv | |
| brew install rbenv | |
| # Add in zshrc | |
| open ~/.zshrc | |
| eval "$(rbenv init - zsh)" | |
| # List stable versions | |
| rbenv install -l |
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
| git checkout branch && && rm -rf node_modules && npm install --legacy-peer-deps && rm -rf ios/Pods && cd ios && pod install && cd .. && yarn start |
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
| - quit xcode | |
| - restart xcode | |
| - reset location in iPhone | |
| - sudo killall -STOP -c usbd | |
| - sudo launchctl stop com.apple.usbmuxd |
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
| Basic Creation | |
| 1. Create new swift file + Add also the bridging header file | |
| // example |
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. Synchronization of input text when typing too fast | |
| /* | |
| One of the solutions for the synchronization problem is to remove the | |
| value prop from TextInput entirely. | |
| */ |
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
| // pattern 1 - component structure | |
| index.tsx: The index file contains the business logic of the component such as data fetching, | |
| as well as the connection to the global application state. It only renders the following .view component. | |
| <component>.view.tsx: The view file contains the UI. It doesn’t hold its own state nor does it connect directly to the global application state. It only renders the props it gets from the index file. | |
| <component>.styles.tsx: The styles file contains the React Native StyleSheet or the styled-components, depending on which approach you chose. |
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
| // ****** Generics | |
| // example 1 - a class | |
| class Set<T> { | |
| private items: T[]; | |
| constructor(initialItems: T[] = []) { | |
| this.items = initialItems; |
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
| /* | |
| Table of Contents | |
| - @builder Pattern | |
| - @singleton Pattern | |
| */ | |
| // =================== @builder Pattern =================== | |
| class PremiumWebsiteBuilder implements WebsiteBuilder { | |
| constructor(private website: Website) { |