shimohq / react-native-prompt-android

A polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform.
MIT License
130 stars 75 forks source link

Not working on android #43

Open rahulsalvikar777 opened 5 years ago

rahulsalvikar777 commented 5 years ago

Getting this blow error

undefined is not an object (evaluating 'PromptAndroid.promptWithArgs')

Its working proper on iPhone. But it gives error on

Genymotion Goggle Nexus 6, android API - 8.0-API 26.

arcollector commented 5 years ago

after linking you need to build again the apk file (react-native run-android), also, re-start react-native (react-native start) to refresh imported modules paths

trialsNow commented 5 years ago

@rahulsalvikar777 manual linking of this module in android resolves this issue

vegemite4me commented 2 years ago

With RN 0.66.4 I followed @arcollector steps, except there was no need for manual linking.

MuhammadAdeelBaig commented 4 months ago

rebuild the project using npx react-native run-android