react-native-input-spinner icon indicating copy to clipboard operation
react-native-input-spinner copied to clipboard

[Contest] Make your skin

Open marcocesarato opened this issue 4 years ago • 0 comments

Hello everybody, from version 1.7.0 it's now possible unleash your creativity having predefined skins for your input spinner 🎉. Create your skin and submit it to the community by attaching the code, a sample screenshot and the name for your skin.

The best ones will be added to the main library 😃.

This is a simple example of how to create a skin (clean skin already available):

Example

Skin Clean (clean)

Code

import React from "react";
export const getProps = (props) => {
	const backgroundFallback = props.background ? props.background : "#FFF";
	return {
		shadow: props.shadow ? props.shadow : true,
		color: backgroundFallback,
		colorAsBackground: true,
	};
};

Screenshot

skins

marcocesarato avatar Feb 19 '21 22:02 marcocesarato