mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
274 B
TypeScript
10 lines
274 B
TypeScript
import * as React from "react";
|
|
import { Platform } from "react-native";
|
|
import ReactNativeReferrer from "react-native-referrer";
|
|
|
|
if (Platform.OS === 'android') {
|
|
ReactNativeReferrer.getReferrer().then(referrerString => {
|
|
console.log(referrerString);
|
|
});
|
|
}
|