This commit is contained in:
黄祺
2017-05-26 11:44:23 +08:00
parent ef5593e008
commit b1f438caf0
4 changed files with 6 additions and 12 deletions

3
.gitignore vendored
View File

@@ -1 +1,2 @@
node_modules
node_modules
npm-debug.log

View File

@@ -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

View File

@@ -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;

View File

@@ -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;