William Li 26038f50bb Export YellowBox API
Summary:
Allow end users to access the YellowBox API so that warnings can be properly ignored via the API first introduced in a974c140db605ecbdf8d3faa7a079b7e2dcebb09. Based on that API, you should be able to do the following:

```
import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Warning: ...']);
```

However, if you actually try this today, it results in a broken import error.

Verified using an expo instance. First tried without the YellowBox import, observed a failure to import. Then I added the import statement, and observed no warning on my device.

```
import React from 'react';
import { StyleSheet, Text, View, YellowBox } from 'react-native';

YellowBox.ignoreWarnings(['hey']);

export default class App extends React.Component {
  render() {
    console.warn('hey!');
    return (
      <View style={styles.container}>
        <Text>Open up App.js to start working on your app!</Text>
        <Text>Changes you make will automatically reload.</Text>
        <Text>Shake your phone to open the developer menu.</Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});
```

[GENERAL] [ENHANCEMENT] [YellowBox] - Export YellowBox API so warnings can be ignored using a non-deprecated API.
Closes https://github.com/facebook/react-native/pull/16709

Differential Revision: D6254819

Pulled By: hramos

fbshipit-source-id: ff92f32e4dedfb01f6902f54fabc62eb64468554
2017-11-06 17:44:37 -08:00
..
2017-11-02 08:00:56 -07:00
2017-09-25 10:30:53 -07:00
2017-09-06 03:33:43 -07:00
2017-11-02 08:00:56 -07:00
2017-09-06 03:33:43 -07:00
2016-11-02 12:29:15 -07:00
2017-09-08 14:46:14 -07:00
2017-09-21 15:01:52 -07:00
2017-11-06 17:44:37 -08:00
2017-10-23 11:32:44 -07:00
2017-02-21 15:18:40 -08:00
2017-11-06 03:46:35 -08:00
2017-09-06 03:33:43 -07:00
2017-10-09 17:46:44 -07:00
2017-10-09 17:22:35 -07:00
2017-09-06 03:33:43 -07:00