Skip to content

Commit 05194f3

Browse files
committed
fix
1 parent 1036187 commit 05194f3

File tree

4 files changed

+90
-2646
lines changed

4 files changed

+90
-2646
lines changed

example/app/lib/ActionSheetCustom.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from 'react'
2-
import { Text, View, Dimensions, Modal, TouchableHighlight, Animated, ScrollView, Easing, StyleSheet } from 'react-native'
3-
import optionsSchema from './options'
2+
import { Text, View, Dimensions, Modal, TouchableHighlight, Animated, ScrollView, Easing } from 'react-native'
43
import * as utils from './utils'
5-
import styles2, { hairlineWidth } from './styles'
4+
import styles2 from './styles'
65

76
const WARN_COLOR = '#FF3B30'
87
const MAX_HEIGHT = Dimensions.get('window').height * 0.7
@@ -182,8 +181,8 @@ class ActionSheet extends React.Component {
182181
const { visible, sheetAnim } = this.state
183182
return (
184183
<Modal visible={visible}
185-
animationType="none"
186-
transparent={true}
184+
animationType='none'
185+
transparent
187186
onRequestClose={this._cancel}
188187
>
189188
<View style={[styles.wrapper]}>

lib/ActionSheetCustom.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from 'react'
2-
import { Text, View, Dimensions, Modal, TouchableHighlight, Animated, ScrollView, Easing, StyleSheet } from 'react-native'
3-
import optionsSchema from './options'
2+
import { Text, View, Dimensions, Modal, TouchableHighlight, Animated, ScrollView, Easing } from 'react-native'
43
import * as utils from './utils'
5-
import styles2, { hairlineWidth } from './styles'
4+
import styles2 from './styles'
65

76
const WARN_COLOR = '#FF3B30'
87
const MAX_HEIGHT = Dimensions.get('window').height * 0.7
@@ -182,8 +181,8 @@ class ActionSheet extends React.Component {
182181
const { visible, sheetAnim } = this.state
183182
return (
184183
<Modal visible={visible}
185-
animationType="none"
186-
transparent={true}
184+
animationType='none'
185+
transparent
187186
onRequestClose={this._cancel}
188187
>
189188
<View style={[styles.wrapper]}>

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Cross platform ActionSheet. This component implements a custom ActionSheet and provides the same way to drawing it on the defferent platforms(iOS and Android). Actually, In order to keep the best effect, it still uses the ActionSheetIOS on iOS.",
55
"main": "lib/index.js",
66
"scripts": {
7-
"lint": "eslint lib tests",
7+
"lint": "standard lib/**/*.js",
88
"test": "jest --no-cache"
99
},
1010
"jest": {
@@ -33,18 +33,16 @@
3333
"homepage": "https://github.com/beefe/react-native-actionsheet#readme",
3434
"peerDependencies": {
3535
"prop-types": ">=15.4.0",
36-
"react": ">=15.4.0"
36+
"react": ">=15.4.0",
37+
"react-native": "*"
3738
},
3839
"devDependencies": {
3940
"babel-jest": "^21.2.0",
4041
"babel-preset-env": "^1.6.1",
4142
"babel-preset-react-native": "^4.0.0",
4243
"jest": "^21.2.1",
43-
"prop-types": "^15.5.0",
44-
"react": "15.4.0",
45-
"react-native": "0.39.0",
4644
"react-test-renderer": "15.4.0",
47-
"standard": "^11.0.1"
45+
"standard": "*"
4846
},
4947
"dependencies": {
5048
"babel-eslint": "^8.2.2"

0 commit comments

Comments
 (0)