Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
ReactNativeͰษڧձͷϏϡʔϫ ʔΞϓϦΛ࡞ͬͯΈֶͯΜͩݟ ݹՈ େ
Slide 2
Slide 2 text
ࣗݾհ ݹՈ େ (@enzerubank) ϑϦʔϥϯε ϑϩϯτΤϯυΤϯδχΞ ωΠςΟϒ(Swift, Kotlin)ͷࣝθϩ ࣄͰReactNativeͷΞϓϦ։ൃΛΔ͜ͱʹʂ
Slide 3
Slide 3 text
ࠓճͷൃදͰ͢͜ͱ ○ ࣮ͰֶΜͩReactNativeͷϕʔεͷΞʔ ΩςΫνϟΛαϯϓϧΛݩʹ͠·͢
Slide 4
Slide 4 text
͜Μͳ͜ͱࠓճ͠·ͤΜ ○ ReactNative, Reduxʹؔ͢Δجૅతͳ ○ ࣮ࡍͷϦϦʔεʹ͚ͨௐͷ
Slide 5
Slide 5 text
ࠓճಋೖͨ͠ϥΠϒϥϦ ○ react-native ○ axios ○ redux ○ redux-saga ○ react-navigation
Slide 6
Slide 6 text
ࠓճಋೖͨ͠ϥΠϒϥϦ ○ react-native ○ axios ○ redux ○ redux-saga ○ react-navigation redux֎ͷ෭࡞༻Λ୲ ը໘ભҠΛ୲ɻWebͰ͑Δ ঢ়ଶมߋͷͨΊͷϧʔϧΛܾΊΔ શମͷϕʔε
Slide 7
Slide 7 text
ॲཧͷྲྀΕ View Action ඇಉظॲཧ Store Reducer Saga Πϕϯτൃੜ ඞཁʹԠͯ͡SagaΛ్தʹڬΉ ΠϕϯτΛ͢ ঢ়ଶΛߋ৽ ϏϡʔΛ࠶ඳը
Slide 8
Slide 8 text
ॲཧͷྲྀΕ View Action ඇಉظॲཧ Store Reducer Πϕϯτൃੜ ඞཁʹԠͯ͡SagaΛ్தʹڬΉ ΠϕϯτΛ͢ ঢ়ଶΛߋ৽ ϏϡʔΛ࠶ඳը Saga
Slide 9
Slide 9 text
σϞ
Slide 10
Slide 10 text
redux-sagaͷ֓ཁ • Root͕λεΫΛForkͯ͠ฒྻॲཧΛ࣮ݱ͢Δ • λεΫৗʹΠϕϯτͷൃੜΛͭ Fork RootSaga Call Take HomeScreenSaga
Slide 11
Slide 11 text
redux-sagaͰActionΛड͚औΔ • takeͰϢʔβʔͷΫϦοΫΠϕϯτΛݕ • ΠϕϯτΛऔಘ͢ΔؔΛ࣮ߦ
Slide 12
Slide 12 text
redux-sagaͰॲཧΛ࣮ߦ͢Δ • callͰΠϕϯτͷऔಘ • putͰऔಘ߲ͨ͠ͰReducerΛߋ৽͢Δ
Slide 13
Slide 13 text
react-navigationʹΑΔը໘ભҠ • Ұཡͷ্ʹهࣄৄࡉը໘Λදࣔ • StackNavigationΛར༻
Slide 14
Slide 14 text
ExpoͰಈ࡞֬ೝ (հ͖͠Εͳ͍ͷͰ) • QRίʔυ͔Βμϯϩʔυ • Ұ௨Γͷಈ͖͕࣮ػͰࢼͤΔ https://expo.io/@react-navigation/NavigationPlayground
Slide 15
Slide 15 text
react-navigation+Reduxͷҙ • Quick Start௨ΓͰ্ख͍͔͘ͳ͍ • Reduxͱͷ࿈ܞφϏ༻ͷReducer͕ඞཁ ※ https://reactnavigation.org/docs/guides/redux
Slide 16
Slide 16 text
WebViewʹ͍ͭͯ • ৄࡉը໘ཁૉ͕ଟ͍ͷͰར༻ • ࠓճγϯϓϧʹURLಡΈࠐΈ • AndroidChromeͰදࣔ͢Δ ※ Chromeͷํ͕ύϑΥʔϚϯε͕ྑ͍Β͍͠ (ৄ͍͠ํͥͻڭ͍͑ͯͩ͘͞) ※
Slide 17
Slide 17 text
ࠓޙऔΓΈ͍ͨ͜ͱ ○ ਤɾΧϝϥػೳΛͬͨΞϓϦ։ൃ ○ SketchσʔλͷReactNativeग़ྗ
Slide 18
Slide 18 text
͝੩ௌ͋Γ͕ͱ͏͍͟͝· ͨ͠ʂ