mirror of
https://github.com/zhigang1992/react-native-shadow-view.git
synced 2026-01-12 22:50:53 +08:00
push
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
node_modules
|
||||
node_modules
|
||||
npm-debug.log
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as React from 'react'
|
||||
import { View, ViewStyle, StyleSheet, ViewProperties, LayoutChangeEvent, Platform } from 'react-native'
|
||||
import { View, ViewStyle, StyleSheet, ViewProperties } from 'react-native'
|
||||
const { Svg, Rect, Defs, LinearGradient, Stop, RadialGradient, Path } = require('react-native-svg')
|
||||
const alpha = require('color-alpha')
|
||||
|
||||
@@ -204,7 +204,4 @@ export class ShadowView extends React.Component<ViewProperties, any> {
|
||||
}
|
||||
}
|
||||
|
||||
export default Platform.select({
|
||||
ios: ShadowView,
|
||||
android: ShadowView
|
||||
})
|
||||
export default ShadowView
|
||||
3
lib/index.android.d.ts
vendored
3
lib/index.android.d.ts
vendored
@@ -4,5 +4,4 @@ import { ViewProperties } from 'react-native';
|
||||
export declare class ShadowView extends React.Component<ViewProperties, any> {
|
||||
render(): JSX.Element;
|
||||
}
|
||||
declare const _default: typeof ShadowView;
|
||||
export default _default;
|
||||
export default ShadowView;
|
||||
|
||||
@@ -92,7 +92,4 @@ class ShadowView extends React.Component {
|
||||
}
|
||||
}
|
||||
exports.ShadowView = ShadowView;
|
||||
exports.default = react_native_1.Platform.select({
|
||||
ios: ShadowView,
|
||||
android: ShadowView
|
||||
});
|
||||
exports.default = ShadowView;
|
||||
|
||||
Reference in New Issue
Block a user