Revert "Remove unused ApplicationContext fetch"
This commit is contained in:
parent
165e40f22d
commit
4bbb0f4c16
|
@ -71,6 +71,7 @@ public class ClipboardModule extends ReactContextBaseJavaModule {
|
|||
@SuppressLint("DeprecatedMethod")
|
||||
@ReactMethod
|
||||
public void setString(String text) {
|
||||
ReactApplicationContext reactContext = getReactApplicationContext();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
|
||||
ClipData clipdata = ClipData.newPlainText(null, text);
|
||||
ClipboardManager clipboard = getClipboardService();
|
||||
|
|
Loading…
Reference in New Issue