Skip to content

Commit

Permalink
Remove deprecated APIs and modules
Browse files Browse the repository at this point in the history
Summary:
We've deprecated these APIs for quite a few releases and we should be able to get rid of them now.

Remove following deprecated modules/components
 - AppStateIOS
 - ActivityIndicatorIOS
 - IntentAndroid
 - SliderIOS
 - SwitchAndroid
 - SwitchIOS
 - LinkingIOS

Update following modules to remove callback support
 - Clipboard
 - NetInfo

cc bestander
Closes #9891

Reviewed By: bestander

Differential Revision: D3974094

Pulled By: javache

fbshipit-source-id: 9abe32716bd85d0cea9933894f4447d53bdd5ee7
  • Loading branch information
satya164 authored and Facebook Github Bot committed Oct 11, 2016
1 parent 9ed9bca commit fa5ad85
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 822 deletions.
4 changes: 2 additions & 2 deletions Examples/UIExplorer/js/ToolbarAndroidExample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var {
var UIExplorerBlock = require('./UIExplorerBlock');
var UIExplorerPage = require('./UIExplorerPage');

var SwitchAndroid = require('SwitchAndroid');
var Switch = require('Switch');
var ToolbarAndroid = require('ToolbarAndroid');

class ToolbarAndroidExample extends React.Component {
Expand Down Expand Up @@ -67,7 +67,7 @@ class ToolbarAndroidExample extends React.Component {
logo={require('image!launcher_icon')}
style={styles.toolbar}>
<View style={{height: 56, flexDirection: 'row', alignItems: 'center'}}>
<SwitchAndroid
<Switch
value={this.state.toolbarSwitch}
onValueChange={(value) => this.setState({'toolbarSwitch': value})} />
<Text>{'\'Tis but a switch'}</Text>
Expand Down
18 changes: 0 additions & 18 deletions Libraries/AppState/AppStateIOS.js

This file was deleted.

This file was deleted.

63 changes: 0 additions & 63 deletions Libraries/Components/ActivityIndicator/ActivityIndicatorIOS.ios.js

This file was deleted.

8 changes: 1 addition & 7 deletions Libraries/Components/Clipboard/Clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
'use strict';

const Clipboard = require('NativeModules').Clipboard;
const deprecatedCallback = require('deprecatedCallback');

/**
* `Clipboard` gives you an interface for setting and getting content from Clipboard on both iOS and Android
Expand All @@ -27,12 +26,7 @@ module.exports = {
* ```
*/
getString(): Promise<string> {
return deprecatedCallback(
Clipboard.getString(),
Array.prototype.slice.call(arguments),
'success-first',
'Clipboard.getString(callback) is deprecated. Use the returned Promise instead'
);
return Clipboard.getString();
},
/**
* Set content of string type. You can use following code to set clipboard content
Expand Down
142 changes: 0 additions & 142 deletions Libraries/Components/Intent/IntentAndroid.android.js

This file was deleted.

17 changes: 0 additions & 17 deletions Libraries/Components/Intent/IntentAndroid.ios.js

This file was deleted.

14 changes: 0 additions & 14 deletions Libraries/Components/SliderIOS/SliderIOS.android.js

This file was deleted.

Loading

0 comments on commit fa5ad85

Please sign in to comment.