![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@react-native-sandbox/controls
Advanced tools
A plugin for react-native-sandbox to enable support for controls
Adds sandbox controls to react-native-sandbox
to quickly manipulate component properties directly in the UI.
Requires react-native-sandbox
. Ensure that your sandbox is configured correctly before proceeding.
Open a terminal in your project's folder and run
npm install @react-native-sandbox/controls
Modify your sandbox root to load the plugin:
import ControlsPlugin from '@react-native-sandbox/controls';
// ...
function Sandbox() {
return <SandboxRoot components={comonents} plugins={[ControlsPlugin]}>;
}
Controls are added to a sandbox by simply invoking the appropriate hook for the desired control. Controls are rendered in the order that the hooks are invoked.
import MyComponent from './MyComponent';
import { useText, useDivider, useNumber } from '@react-native-sandbox/controls';
function MyComponentSandbox() {
// render a text input control first
const label = useText("Custom Label", "My Component");
// render a divider next
useDivider();
// render a number input control last
const num = useNumber("Custom Number", 0);
return (<MyComponent label={label} value={num} />);
}
The built-in controls are the following:
Type | Hook | Description |
---|---|---|
Boolean | useBoolean | A switch control for boolean props |
Color | useColor | A color picker |
Divider | useDivider | A divider in the component control panel |
Info | useInfo | A info block to display useful information |
Label | useLabel | A label to display in component control panel |
Number | useNumber | A number input |
Object | useObject | A text input control for JSON objects |
Select | useSelect | A value selector |
Text | useText | A text input |
Coming soon
FAQs
A plugin for react-native-sandbox to enable support for controls
The npm package @react-native-sandbox/controls receives a total of 0 weekly downloads. As such, @react-native-sandbox/controls popularity was classified as not popular.
We found that @react-native-sandbox/controls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.