Skip to content

Commit

Permalink
fix: remove lib from ignore to use on in npm
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelessiet committed May 16, 2024
1 parent 645c325 commit 0c88c2d
Show file tree
Hide file tree
Showing 5 changed files with 223 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
lib/
node_modules/
package-lock.json
.yarn/
46 changes: 46 additions & 0 deletions lib/skeleton-placeholder.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import * as React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
declare type SkeletonPlaceholderProps = {
/**
* Determines component's children.
*/
children: JSX.Element;
/**
* Determines the color of placeholder.
*/
backgroundColor?: string;
/**
* Determines the highlight color of placeholder.
*/
highlightColor?: string;
/**
* Determines the animation speed in milliseconds. Use 0 to disable animation
*/
speed?: number;
/**
* Determines the animation direction, left or right
*/
direction?: 'left' | 'right';
/**
* Determines if Skeleton should show placeholders or its children.
*/
enabled?: boolean;
/**
* Determines default border radius for placeholders from both SkeletonPlaceholder.Item and generated from children.
*/
borderRadius?: number;
angle?: number;
/**
* Determines width of the highlighted area
*/
shimmerWidth?: number;
};
declare type SkeletonPlaceholderItemProps = ViewStyle & {
style?: StyleProp<ViewStyle>;
children?: React.ReactNode;
};
declare const SkeletonPlaceholder: React.FC<SkeletonPlaceholderProps> & {
Item: React.FC<SkeletonPlaceholderItemProps>;
};
export default SkeletonPlaceholder;
//# sourceMappingURL=skeleton-placeholder.d.ts.map
1 change: 1 addition & 0 deletions lib/skeleton-placeholder.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

175 changes: 175 additions & 0 deletions lib/skeleton-placeholder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/skeleton-placeholder.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c88c2d

Please sign in to comment.