* translation expo module * add `onClose` and `onReplacementAction` * rm onReplacementAction * make all props published * make translation api available globally w/o wrapper (#4110) * conditionally import the translation module * only use native translation if language is probably supported * open native translation via dropdown menu --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
13 lines
249 B
TypeScript
13 lines
249 B
TypeScript
export const NativeTranslationModule = {
|
|
presentAsync: async (_: string) => {},
|
|
}
|
|
|
|
export function NativeTranslationView() {
|
|
return null
|
|
}
|
|
|
|
export const isAvailable = false
|
|
|
|
export function isLanguageSupported(_lang?: string) {
|
|
return false
|
|
}
|