Upgrade to Pro — share decks privately, control downloads, hide ads and more …

React Native in Nature

soh335
October 02, 2021

React Native in Nature

soh335

October 02, 2021
Tweet

More Decks by soh335

Other Decks in Programming

Transcript

  1. Ҡߦཧ༝ • 2ਓͰ iOS, Android, firmware, backend ΛΞΫςΟϒʹ։ൃ͍ͯ͘͠ͷ͕೉ ͔ͬͨ͠ •

    ౰࣌ • React Native 0.52. 0 • TypeScript 2.6. 2 • https://employment.en-japan.com/engineerhub/entry/2018/08/17/110000 • 3೥લʹΠϯλϏϡʔͯ͠΋Β͍·ͨ͠ 14
  2. ڞ௨ԽͰ͖ͳ͔ͬͨ΋ͷ • ωΠςΟϒͷڍಈʹؔ࿈͢Δ΋ͷ • ύʔϛογϣϯपΓ • Geofence पΓ • Wi-Fi

    Λ༻͍ͨηοτΞοϓ • Bluetooth Λ༻͍ͨηοτΞοϓ • Ͳ͔ͪΒ͚ͩڍಈ͕͓͔͘͠ճආࡦΛೖΕͯΔ৔߹ 16
  3. ϥΠϒϥϦपΓ • react-navigatio n • redux & redux-thunk && redux-persist

    & imme r • react-native-map s • react-native-ble-manage r • react-native-sv g • react-native-vector-icon s • react-native-linear-gradien t • lottie-react-nativ e • react-native-i18 n • sentr y • etc… 23
  4. Nativeʹ਺ߦॻ͚͹ྑ͍ॲཧ • universalLinksOnly option ͕ඞཁͳ Linking.openUR L • Siri Shortcut

    s • NEHotspotConfiguratio n • Firebase Messaging, Analytics, etc… 26
  5. React Native ʹύονૹͬͨΓ • Fix typescript constructor parameter propertie s

    • https://github.com/facebook/metro/pull/262 • Fix some languages wrapped texts are cut off on androi d • https://github.com/facebook/react-native/pull/25306 30
  6. Oppo A77 - Some texts gets cut-off • https://github.com/facebook/react-native/issues/15114 •

    One Plus, Oppo ͷσόΠεͰ༻ҙ͞ΕͯΔϑΥϯτΛ࢖͏ ͱจࣈྻͷඳը͕͓͔͍͠ • Roboto Λಉࠝ 32
  7. Renovate • ؅ཧ͍ͯ͠Δ npm packag e • Podfil e •

    Gemfile (fastlane, cocoapods ͱ͔ʣ • Gradle 39
  8. Renovate 40 "packageRules": [ { "groupName": "react native", "groupSlug": "react-native-deps",

    "matchPackageNames": [ "react", "react-native", "@babel/core", "@babel/runtime", "@react-native-community/eslint-config", "babel-jest", "eslint", "jest", "metro-react-native-babel-preset", "react-test-renderer", "gradle", … • React Native ຊମʹґଘ͍ͯ͠Δͷ͸ ݸʑ্Βͳ͍Α͏ʹ͢Δͱ͔ • Ұ౓ʹ͋͛Δͱͱʹ͔͘େมͳͷͰ౎ ౓্͍͛ͯ͘
  9. Update react-navigation 47 <Tab.Navigator> <Tab.Screen name={screens.Control} component={Controls} /> { showEnergy

    && <Tab.Screen name={screens.Energy} component={Energy} /> } ... </Tab.Navigator>
  10. ࣮ࡍ React Native Ͳ͏? • ී௨ʹ࡞ͬͯΕ͹ iOS, Android, ͲͷαΠζͰ΋ಈ͘ͷͰྑ͍ •

    ਖ਼௚ Android ਂ͘Θ͔Βͳ͍͚ͲΞϓϦ͕ී௨ʹ࡞ΕΔ • ͜ͷνʔϜن໛Ͱ1,2िؒʹҰ౓ͷΞοϓσʔτΈ͍ͨͳͷ͸ωΠςΟϒͦ ΕͧΕͩͱݫ͍͠ • TypeScript ͕ྑ͍ 48
  11. ࣮ࡍ React Native Ͳ͏? • SPA ͷϨϏϡʔ΋Ͱ͖ΔΑ͏ʹͳ͍ͬͯͨ • ਖ਼௚ෳࡶͳ͜ͱͨ͘͠ͳ͍ •

    σβΠϯ͕Ͳ͔ͬͪʹدΓ͕ͪ (͏ͪ͸ iOS ΑΓ ) • ωΠςΟϒͷΞοϓσʔτͷΩϟονΞοϓ͕Ͱ͖ͳ͍ͱେม 49