Skip to content

Instantly share code, notes, and snippets.

View pablocattaneo's full-sized avatar

Pablo Cattaneo pablocattaneo

View GitHub Profile
rm -rf node_modules && rm -rf ios && rm -rf android
expo prebuild --clean
bun pm cache rm
brew list --versions | grep cocoapods
Source: https://chat.openai.com/share/e52936c1-5f62-4b99-9179-38dbf973c580
// 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);
}
// TextInput has to have the next props
<TextInput
autoComplete="email"
autoCorrect={false}
keyboardType="email-address"
textContentType="emailAddress"
/>
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
# https://reactnative.dev/docs/running-on-simulator-ios
xcrun simctl list devices
yarn ios --simulator "iPhone 14 Pro (16.0)"
https://github.com/react-native-community/cli/blob/main/docs/commands.md
# Problem CONFLICT (content): Merge conflict in ios/Podfile.lock
# Solution
Delete podfile.lock
and pods folder and run pod install