Skip to content

Commit

Permalink
Add spec for DevSettings (#25084)
Browse files Browse the repository at this point in the history
Summary:
Part of #24875, adds a spec for DevSettings.

## Changelog

[General] [Added] - TM spec for DevSettings
Pull Request resolved: #25084

Reviewed By: hramos

Differential Revision: D15558093

Pulled By: fkgozali

fbshipit-source-id: 3adcb640a6ad80c84c831905bda114e27177f1fe
  • Loading branch information
Jarvis Luong authored and facebook-github-bot committed May 31, 2019
1 parent a0879ce commit 85252a6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Libraries/NativeModules/specs/NativeDevSettings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/

'use strict';

import type {TurboModule} from '../../TurboModule/RCTExport';
import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';

export interface Spec extends TurboModule {
+reload: () => void;
+setHotLoadingEnabled: (isHotLoadingEnabled: boolean) => void;
+setIsDebuggingRemotely: (isDebuggingRemotelyEnabled: boolean) => void;
+setLiveReloadEnabled: (isLiveReloadEnabled: boolean) => void;
+setProfilingEnabled: (isProfilingEnabled: boolean) => void;
+toggleElementInspector: () => void;

// iOS only.
+setIsShakeToShowDevMenuEnabled: (enabled: boolean) => void;
}

export default TurboModuleRegistry.getEnforcing<Spec>('DevSettings');

0 comments on commit 85252a6

Please sign in to comment.