Create a reusable IG Switch component with UIDocs and snapshot test

Summary: Switch is a standard component and needs some extra styling of the colors to be used in IG, so I've created a reusable switch component for Instagram React Native and added server snapshot tests with UIDocs for it so it will appear in https://our.intern.facebook.com/intern/uidocs/?docset=rn_iig for more people to use.

Reviewed By: lostatseajoshua

Differential Revision: D9023261

fbshipit-source-id: dd460ca4506e2fc072ed03cca56b4a3c172123bd
This commit is contained in:
Trish Saylor 2018-07-27 06:34:06 -07:00 committed by Facebook Github Bot
parent 169d6839bb
commit 78676915ad
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const requireNativeComponent = require('requireNativeComponent');
import type {ColorValue} from 'StyleSheetTypes';
import type {ViewProps} from 'ViewPropTypes';
type Props = $ReadOnly<{|
export type Props = $ReadOnly<{|
...ViewProps,
/**
* The value of the switch. If true the switch will be turned on.