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
fn+◄ (function + left arrow) for Home and fn+► (function + right arrow) for End. | |
source: https://superuser.com/a/210005/2166510 |
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
// Set flexShrink in Style: This property allows the text to shrink in order to fit its container. | |
<View style={{ flexDirection: 'row', width: 100 }}> | |
<Text style={{ flexShrink: 1 }}>This is some long text that might overflow its container.</Text> | |
</View> |
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
rm -rf node_modules && rm -rf ios && rm -rf android | |
expo prebuild --clean |
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
bun pm cache rm |
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
brew list --versions | grep cocoapods | |
Source: https://chat.openai.com/share/e52936c1-5f62-4b99-9179-38dbf973c580 |
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
// The type for the event is NativeSyntheticEvent<TextInputChangeEventData> | |
// example 1 | |
import { TextInput, NativeSyntheticEvent, TextInputChangeEventData } from "react-native"; | |
const onChange = (e: NativeSyntheticEvent<TextInputChangeEventData>): void => { | |
const value = e.nativeEvent.text; | |
doStuff(value); | |
} | |
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
// TextInput has to have the next props | |
<TextInput | |
autoComplete="email" | |
autoCorrect={false} | |
keyboardType="email-address" | |
textContentType="emailAddress" | |
/> |
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://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository |
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://reactnative.dev/docs/running-on-simulator-ios | |
xcrun simctl list devices | |
yarn ios --simulator "iPhone 14 Pro (16.0)" |