728x90
// ๐ Good Case
@ReactMethod
public void getAppName(Promise promise) {
promise.resolve("Roubit");
}
// ๐ Bad Case
@ReactMethod
public String getAppName(Promise promise) {
return "Roubit";
}
ํญ์ promise ์ฒ๋ฆฌ ํด์ค์ผ ํ๋ค.
'Solve Problem > React Native' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[React Native] ์ฑํ ํ๋ฉด์ ๊ตฌ์ฑํ๋ 2๊ฐ์ง ๋ฐฉ๋ฒ (FlatList) (2) | 2023.03.27 |
---|---|
Apollo Client query ์ ์ฃผ์์ (variables) (0) | 2023.01.21 |
react native vision camera ์ด์ ์ถ์ ์ฉ (0) | 2022.08.26 |
[React Native] Android TimePicker ์๊น ์ปค์คํ ํ๋ ๋ฐฉ๋ฒ (0) | 2021.10.19 |
[React Native] ์ธ์ฑ๋ฆฌ๋ทฐ ๊ธฐ๋ฅ In-App Review (1) | 2021.08.26 |