@mythologi/react-native-testflight
v1.1.0
Published
A tiny react-native module that lets you determine whether your app is running in TestFlight
Downloads
7
Readme
react-native-test-flight
Getting started
$ yarn add @mythologi/react-native-testflight
Mostly automatic installation
$ react-native link @mythologi/react-native-testflight
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-test-flight
and addRNTestFlight.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNTestFlight.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import RNTestFlight from "@mythologi/react-native-testflight";
if (RNTestFlight.isTestFlight) {
console.log("Ground control to Major Tom");
}