Options
All
  • Public
  • Public/Protected
  • All
Menu

react-native-toolbox

A collection of tools for my React Native projects.

Installation

npm i --save git://github.com/msukmanowsky/react-native-toolbox.git

Design Tools

scutwind

Like Tailwind, but customized for me:

import { View } from "react-native";
import { scutwind as sw } from "react-native-toolbox";


const Thing = () => (
  <View style={sw("flex-grow mx-4 bg-gray-100")} />
);

Hooks

useAsyncStorage

import { hooks } from "react-native-toolbox";
const { useAsyncStorage } = hooks;

const [value, setValue] = useAsyncStorage(null);

useRandomUsers

Get random users from https://randomuser.me

import { hooks } from "react-native-toolbox";
const { useRandomUsers } = hooks;

const users = useRandomUsers(options);

Generated using TypeDoc