Skip to content

grgr-dkrk/ReactNativeHaTsuraiLesson

Repository files navigation

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

資料

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published