Skip to content

Commit

Permalink
6.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBrahma committed Apr 12, 2022
1 parent 2f3001f commit ea9bfd2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 6.0.4 - 2022-04-12
* Fixed missed children type when using the new @types/react 18. [#44](https://github.com/SrBrahma/react-native-shadow-2/issues/44). Thanks [@Czino](https://github.com/Czino) and [@hcharley](https://github.com/hcharley)!

## 6.0.3 - 2022-02-11
* Fixed paintInside gaps on iOS. [#36](https://github.com/SrBrahma/react-native-shadow-2/issues/36). Thanks, [@walterholohan](https://github.com/walterholohan)!

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-shadow-2",
"version": "6.0.3",
"version": "6.0.4",
"description": "Cross-platform shadow for React Native. Improved version of the abandoned react-native-shadow package",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
7 changes: 5 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React, { useMemo, useState } from 'react';
import { I18nManager, PixelRatio, Platform, StyleProp, StyleSheet, View, ViewProps, ViewStyle } from 'react-native';
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
import { I18nManager, PixelRatio, Platform, StyleSheet, View } from 'react-native';
import { Defs, LinearGradient, Mask, Path, RadialGradient, Rect, Stop, Svg } from 'react-native-svg';
import { parseToRgb, rgbToColorString, transparentize } from 'polished'; // To extract alpha
import type { RgbaColor } from 'polished/lib/types/color';
import { Corner, CornerRadius, CornerRadiusShadow, cornerToStyle, objFromKeys, Side } from './utils';
import type { Corner, CornerRadius, CornerRadiusShadow, Side } from './utils';
import { cornerToStyle, objFromKeys } from './utils';


/** Package Semver. Used on the [Snack](https://snack.expo.dev/@srbrahma/react-native-shadow-2-sandbox)
Expand Down Expand Up @@ -151,6 +153,7 @@ export interface ShadowProps {
*
* @default false */
safeRender?: boolean;
children?: React.ReactNode;
}


Expand Down

0 comments on commit ea9bfd2

Please sign in to comment.