fdikmen / Edu-React-Native-PTT.G01

Edu-React-Native-PTT.G01

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edu-React-Native-PTT.G01

Edu-React-Native-PTT.G01

05062023 (Day01)

  1. React Native
  2. Components
  3. export - import - as
  4. Folder Structure
  5. ES7+ React/Redux/React-Native snippets | React Native Snippet | Prettier - Code formatter
  6. Styles
  7. View - Text
  8. Commands
    Create React Project
npx react-native init [Project-Name]

Start Metro

npm run start

Deploy to Device

npm run ios / npm run android

Exit Terminal

CTRL + C
  1. Props
  2. Flex - flexDirection
  3. State
  4. Counter

06062023 (Day02)

  1. Summary
  2. Create First App
  • Create JS/JSX App
npx create-react-native-app [Project-Name]
  • Create TS/TSX App
npx react-native init [Project-Name]
  1. Button (title | onPress | color | disabled)
  2. Event Handler/Bind
  3. Alert.alert('XXXX') | Alert.prompt('title','msg',func) -> IOS
  4. Image (source->{require} | @2x @3x @4x | source->{{uri}})
  • resizeMode (contain, cover, center, repeat, stretch )
  • style {{width-height}}
  1. Touchables => TouchableOpacity & TouchableHighlight & TouchableWithoutFeedback
  2. TextInput (onChangeText, value, placeholder, style, secureTextEntry={true}, editable={false}, keyboardType='number-pad', autoCapitalize='characters') IOS Keyboard Show => SHIFT+CMD+K | SHIFT+CTRL+K
  3. ScrollView (horizontal={true},pagingEnabled={true} ) -> ListView
  4. Dimensions Dimensions.get('window').width | Dimensions.get('window').height; Dimensions.addEventListener('change', onChange); Dimensions.removeEventListener('change', onChange);
  5. SafeAreaView
  6. Platform Based Components .ios/.android | Platform.OS - (ios - android) | Platform.Version Style Sample=> https://reactnative.dev/docs/platform-specific-code
  7. Class Component + Function Comp
  8. LifeCycle -> useEffect
  9. Hooks -> useState & useEffect
  10. Fetch
  1. Axios
npm i axios

BUG FIXED: Address already in use :::8081 (SOLUTION)[https://medium.com/@fdikmen/react-nativede-port-çakışması-sorunu-ve-çözümü-10d2306acaec]


07062023 (Day03)

  1. Summary
  2. Axios
  3. Deprecated => npx react-native init LessonProject --platform ios | npx react-native init LessonProject --skip android
  4. Dimensions.get('screen').width vs Dimensions.get('window').width
  5. Spread Operator (...)
  6. Platform.Select
  7. ActivityIndicator
  8. Custom API => POSTMAN
  9. FlatList (data | renderItem | keyExtractor | listEmptyComponent | ListHeaderComponent ) TSX => type User useState[] renderItem keyExtractor
  10. PhoneBook (Props, UseState, UseEffect, Axios, SafeAreaView, View, TextInput, FlatList, ActivityIndicator, Text, StyleSheet, Image)
npx react-native init phonebook
  1. Children

08062023 (Day04)

  1. Summary

  2. ErrorBoundary (getDerivedStateFromError | componentDidCatch)

  3. ContextAPI

  4. Navigation Drawer | Tab | Stack | Nesting

  5. Comment => CMD/CTRL + K + C => UnComment => CMD/CTRL + K + U

  6. jamfnow => (Local IOS Deploy)

  7. Debuging => 1.Native IDE (Xcode & AStudio) 2. Console Msg 3. localhost:8081 4. Terminal(Metro)


09062023 (Day05)

  1. Summary
  2. SafeAreaView X [npm install react-native-screens react-native-safe-area-context] .ts vs .tsx =>JSX
  3. Final Project npx react-native init finalProject Clear App.tsx (with tsrnfs)
  1. Nested Navigation
  2. Cutom Icon on Tab Navigation
  3. Coding Login Page
  4. Redux
  5. File Upload Permissons
  • android => .../android/app/src/debug/AndroidManifest.xml
  • ios => .../ios/finalProject/Info.plist
  1. Deploy Steps
  2. Final Project Steps

About

Edu-React-Native-PTT.G01

License:MIT License


Languages

Language:Java 33.5%Language:TypeScript 31.2%Language:Ruby 11.1%Language:JavaScript 9.0%Language:Objective-C 8.9%Language:Objective-C++ 6.2%