Skip to content

Commit

Permalink
feat: releasing first version
Browse files Browse the repository at this point in the history
  • Loading branch information
darshanponikar committed Jul 2, 2022
1 parent d9b1529 commit f27b0ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/NativeTurboDeviceInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import {TurboModule, TurboModuleRegistry} from 'react-native';
interface Spec extends TurboModule {
getIpAddress(): string;

isEmulator(): Promise<boolean>;
getIpAddressAsync(): Promise<string>;

isEmulatorAsync(): Promise<boolean>;

getMacAddress(): string;
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import NativeTurboDeviceInfo from "./NativeTurboDeviceInfo";


export function isEmulator(): Promise<boolean> {
return NativeTurboDeviceInfo.isEmulator();
return NativeTurboDeviceInfo.isEmulatorAsync();
}

export function getIpAddress() :string {
Expand Down

0 comments on commit f27b0ce

Please sign in to comment.