fix imports
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
import {ExpoBlueskySwissArmyModule} from './src/ExpoBlueskySwissArmy'
|
import {ExpoBlueskySwissArmyModule as SwissArmyKnife} from './src/ExpoBlueskySwissArmyModule'
|
||||||
export {ExpoBlueskySwissArmyModule as SwissArmyKnife}
|
export default SwissArmyKnife
|
||||||
|
|||||||
+1
-3
@@ -1,4 +1,4 @@
|
|||||||
type ExpoBlueskySwissArmyModuleType = {
|
export type ExpoBlueskySwissArmyModuleType = {
|
||||||
getStringValueAsync(
|
getStringValueAsync(
|
||||||
key: string,
|
key: string,
|
||||||
useAppGroup?: boolean,
|
useAppGroup?: boolean,
|
||||||
@@ -9,5 +9,3 @@ type ExpoBlueskySwissArmyModuleType = {
|
|||||||
useAppGroup?: boolean,
|
useAppGroup?: boolean,
|
||||||
): Promise<void>
|
): Promise<void>
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ExpoBlueskySwissArmyModule = {} as ExpoBlueskySwissArmyModuleType
|
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
export const ExpoBlueskySwissArmyModule = {
|
import {ExpoBlueskySwissArmyModuleType} from './ExpoBlueskySwissArmy.types'
|
||||||
|
|
||||||
|
export const ExpoBlueskySwissArmyModule: ExpoBlueskySwissArmyModuleType = {
|
||||||
getStringValueAsync(_: string, _?: boolean): Promise<string> {
|
getStringValueAsync(_: string, _?: boolean): Promise<string> {
|
||||||
throw new Error('getStringValueAsync is not available on Android')
|
throw new Error('getStringValueAsync is not available on Android')
|
||||||
},
|
},
|
||||||
|
|||||||
+3
-1
@@ -1,8 +1,10 @@
|
|||||||
import {requireNativeModule} from 'expo-modules-core'
|
import {requireNativeModule} from 'expo-modules-core'
|
||||||
|
|
||||||
|
import {ExpoBlueskySwissArmyModuleType} from './ExpoBlueskySwissArmy.types'
|
||||||
|
|
||||||
const NativeModule = requireNativeModule('ExpoBlueskySwissArmy')
|
const NativeModule = requireNativeModule('ExpoBlueskySwissArmy')
|
||||||
|
|
||||||
export const ExpoBlueskySwissArmyModule = {
|
export const ExpoBlueskySwissArmyModule: ExpoBlueskySwissArmyModuleType = {
|
||||||
getStringValueAsync(key: string, useAppGroup = false): Promise<string> {
|
getStringValueAsync(key: string, useAppGroup = false): Promise<string> {
|
||||||
return NativeModule.getStringValueAsync(key, useAppGroup)
|
return NativeModule.getStringValueAsync(key, useAppGroup)
|
||||||
},
|
},
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
export const ExpoBlueskySwissArmyModule = {
|
import {ExpoBlueskySwissArmyModuleType} from './ExpoBlueskySwissArmy.types'
|
||||||
|
|
||||||
|
export const ExpoBlueskySwissArmyModule: ExpoBlueskySwissArmyModuleType = {
|
||||||
getStringValueAsync(_: string, _?: boolean): Promise<string> {
|
getStringValueAsync(_: string, _?: boolean): Promise<string> {
|
||||||
throw new Error('getStringValueAsync is not available on web')
|
throw new Error('getStringValueAsync is not available on web')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {makeStarterPackLink} from 'lib/routes/links'
|
|||||||
import {isAndroid} from 'platform/detection'
|
import {isAndroid} from 'platform/detection'
|
||||||
import {useSetCurrentStarterPack} from 'state/preferences/starter-pack'
|
import {useSetCurrentStarterPack} from 'state/preferences/starter-pack'
|
||||||
import {useUsedStarterPacks} from 'state/preferences/used-starter-packs'
|
import {useUsedStarterPacks} from 'state/preferences/used-starter-packs'
|
||||||
import {SwissArmyKnife} from '../../../modules/expo-bluesky-swiss-army'
|
import SwissArmyKnife from '../../../modules/expo-bluesky-swiss-army'
|
||||||
import GooglePlayReferrer from '../../../modules/expo-google-play-referrer'
|
import GooglePlayReferrer from '../../../modules/expo-google-play-referrer'
|
||||||
|
|
||||||
export function useStarterPackEntry() {
|
export function useStarterPackEntry() {
|
||||||
|
|||||||
Reference in New Issue
Block a user