![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
react-native-sandbox-monorepo
Advanced tools
A sandbox environment for building, documenting, and presenting components in React Native
This is a work in progress. Expect frequent breaking changes until the library reaches a stable
v1.0.0
version.
Provides a sandbox environment for component development with minor configuration requirements.
First, create sandbox definitions. Use sandbox hooks to specify controls.
import { useText } from 'react-native-sandbox';
export function ButtonPlayground() {
const text = useText('Text', 'Button text');
return <Button text={text} />;
}
Then, render the sandbox from within your app.
import SandboxRoot from 'react-native-sandbox';
const components = [
{
name: 'Button',
components: {
ButtonPlayground,
},
},
];
function App() {
return <SandboxRoot components={components} />;
}
Controls are rendered in the order that the hooks are invoked in.
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 |
Label | useLabel | A label to display in component control panel |
Info | useInfo | A info block to display useful information |
Number | useNumber | A number input |
Object | useObject | A text input control for JSON objects |
Select | useSelect | A value selector |
Text | useText | A text input |
Themes allow for control over the styling of the sandbox tool. Out of the box there is a default (light) and a dark theme.
import SandboxRoot, { DefaultTheme, DarkTheme } from 'react-native-sandbox';
// ...
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors
background: 'gray',
}
}
function App() {
return <SandboxRoot components={components} theme={theme} />;
}
Currently, the only supported editable theme properties are colors
.
Property | Description | Default | Dark |
---|---|---|---|
text | Default color for text | black | #eee |
background | Default color for background | white | #222 |
surface | Default background color for surfaces | #eee | #111 |
disabled | Color for disabled text | #555 | #777 |
divider | Color for dividers | #ccc | #555 |
info | Color for informational items | #3498db | #3498db |
warning | Color for warning items | #f1c40f | #f1c40f |
error | Color for error items | #e74c3c | #e74c3c |
success | Color for success items | #2ecc71 | #2ecc71 |
FAQs
A sandbox environment for building, documenting, and presenting components in React Native
The npm package react-native-sandbox-monorepo receives a total of 0 weekly downloads. As such, react-native-sandbox-monorepo popularity was classified as not popular.
We found that react-native-sandbox-monorepo 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.