Skip to content

Commit

Permalink
Replace console logs with startWithToken
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefhamza committed Jun 27, 2017
1 parent 9814122 commit 8818594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions InstabugSample/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ export default class InstabugSample extends Component {

constructor(props) {
super(props);

Instabug.isRunningLive(function (isLive) {
if (isLive) {
console.log("live");
Instabug.startWithToken('LIVE_TOKEN', Instabug.invocationEvent.shake);
} else {
console.log("not live");
Instabug.startWithToken('BETA_TOKEN', Instabug.invocationEvent.shake);
}
});

Instabug.startWithToken('0f0dc916bd9175e3b5d2fdf0cfa49a69', Instabug.invocationEvent.shake);

const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
this.state = {
dataSource: ds.cloneWithRows(this._genRows({})),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@
24ED9F161EFA6BE300D771DA /* Recovered References */ = {
isa = PBXGroup;
children = (
5632439F28464ECB86D23318 /* libRNInstabug.a */,
);
name = "Recovered References";
sourceTree = "<group>";
Expand Down

0 comments on commit 8818594

Please sign in to comment.