Files
DefinitelyTyped/types/react-native-safari-view/react-native-safari-view-tests.ts
Michael Randolph 5ca4b12a73 fixed lint errors
2017-09-21 00:44:36 -04:00

21 lines
551 B
TypeScript

import { EmitterSubscription } from 'react-native';
import SafariView from 'react-native-safari-view';
const didShow: Promise<boolean> = SafariView.show({
barTintColor: '#FFFFFF',
fromBottom: true,
readerMode: true,
tintColor: '#000000',
url: 'http://test.url'
});
const listener = (): void => {};
const subscription: EmitterSubscription = SafariView.addEventListener('onShow', listener);
SafariView.removeEventListener('onShow', listener);
SafariView.dismiss();
const available: Promise<boolean> = SafariView.isAvailable();