MCPcopy Create free account
hub / github.com/NativeScript/firebase / getNative

Method getNative

packages/firebase-ui/index.ios.ts:228–244  ·  view source on GitHub ↗
(ui: UI)

Source from the content-addressed store, hash-verified

226 whitelistedCountries: string[] = [];
227
228 getNative(ui: UI) {
229 if (this.blacklistedCountries.length > 0) {
230 const countries = NSMutableSet.new<string>();
231 this.blacklistedCountries.forEach((country) => {
232 countries.addObject(country);
233 });
234 return FUIPhoneAuth.alloc().initWithAuthUIBlacklistedCountries(ui.native, countries);
235 } else if (this.whitelistedCountries.length > 0) {
236 const countries = NSMutableSet.new<string>();
237 this.whitelistedCountries.forEach((country) => {
238 countries.addObject(country);
239 });
240 return FUIPhoneAuth.alloc().initWithAuthUIWhitelistedCountries(ui.native, countries);
241 } else {
242 return FUIPhoneAuth.alloc().initWithAuthUI(ui.native);
243 }
244 }
245}
246
247export class AnonymousProvider extends ProviderBase {

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.65

Tested by

no test coverage detected