Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 813 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 813 Bytes

ReactNativeHaTsuraiLesson

目標

src/native-module-yobidashi/ から sumgetStringLength を持った NativeModule を呼び出せるようにする。
型は以下の通り

type NativeModuleYobidashiType = {
  sum: (num1: number, num2: number, callback: (result: number) => void) => void
  getStringLength: (str: string) => Promise<number>
}

iOS, Android でそれぞれ Native Module を実装し、yarn iosyarn andorid で起動できれば OK です

Clone & Install

git clone git@github.com:grgr-dkrk/ReactNativeHaTsuraiLesson.git
# ghq
ghq get git@github.com:grgr-dkrk/ReactNativeHaTsuraiLesson.git
# In ReactNativeHaTsuraiLesson/
yarn
npx pod-install
yarn ios
yarn android

資料