import React, { Component } from 'react';
import bugsnag, { Client } from 'bugsnag-react-native';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

class examples extends Component {

  constructor(opts) {
    super(opts);
    this.client = new Client('f35a2472bd230ac0ab0f52715bbdc65d');
    this.client.handleUncaughtErrors();
  }

  render() {
    this.client.leaveBreadcrumb('load main view',
        {type: 'navigation', firstLaunch: 'no'});
    this.client.setUser('123', 'John Jones');
    return (
      <View style={styles.container}>
        <Text style={styles.welcome}>
          Welcome to the Sample Project!
        </Text>
        <Text style={styles.instructions}>
          To get started, edit index.ios.js
        </Text>
        <Text style={styles.instructions}>
          Press Cmd+R to reload,{'\n'}
          Cmd+D or shake for dev menu
        </Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
  },
});

AppRegistry.registerComponent('examples', () => examples);

@@ -45,17 +45,8 @@
 port
- bugsnag,
  %7B C
@@ -164,191 +164,80 @@
 ;%0A%0Ac
-lass examples extends Component %7B%0A%0A  constructor(opts) %7B%0A    super(opts);%0A    this.client = new Client('f35a2472bd230ac0ab0f52715bbdc65d');%0A    this.client.handleUncaughtErrors();%0A  %7D
+onst client = new Client('API key');%0A%0Aclass examples extends Component %7B
 %0A%0A  
@@ -247,29 +247,24 @@
 der() %7B%0A    
-this.
 client.leave
@@ -350,13 +350,8 @@
     
-this.
 clie
@@ -383,16 +383,54 @@
 ones');%0A
+    client.notify(new Error('foo'));%0A%0A
     retu

Add an example of sending a handled error