![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/grid
Advanced tools
A plugin for react-native-sandbox to add a grid layer to sandboxes
Adds a grid to react-native-sandbox
.
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/grid
Modify your sandbox root to load the plugin:
import GridPlugin from '@react-native-sandbox/grid';
// ...
function Sandbox() {
return <SandboxRoot components={comonents} plugins={[GridPlugin]}>
}
By default all sandboxes will now have the grid actions added to the toolbar. Tapping the icon will iterate over the different size configurations. (disabled, 10, 20, 50) You can also toggle between a line grid and a dot grid.
To disable grid on a given sandbox you can provide a plugin configuration:
import MyComponent from './MyComponent';
import { useDocs } from '@react-native-sandbox/docs';
import documentation from './documentation.txt';
function MyComponentSandbox() { /* ... */ }
export default {
name: 'My Component Sandbox',
components: {
MyComponentSandbox: {
component: MyComponentSandbox,
plugins: {
grid: false,
}
}
}
}
The plugin can be configured as follows:
import GridPlugin from '@react-native-sandbox/grid';
// ...
const plugin = GridPlugin.configure(options);
Where the following options are available:
Key | Type | Description |
---|---|---|
gridColor | string | Global override for the default grid color. |
defaultType | "line", "dot" | Default grid type to use. |
FAQs
A plugin for react-native-sandbox to add a grid layer to sandboxes
The npm package @react-native-sandbox/grid receives a total of 0 weekly downloads. As such, @react-native-sandbox/grid popularity was classified as not popular.
We found that @react-native-sandbox/grid 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.