react-native-simple-twitter
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "react-native-simple-twitter", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Twitter API client for React Native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,2 +25,4 @@ # React-Native-Simple-Twitter | ||
![demo gif](extras/demo.gif) | ||
## Usage | ||
@@ -179,3 +181,3 @@ ```js | ||
``` | ||
Checkout [example](https://github.com/watanabeyu/react-native-simple-twitter/tree/v1.0.x/example). | ||
Checkout [example](example). | ||
@@ -182,0 +184,0 @@ ## TWLoginButton props |
@@ -9,3 +9,5 @@ import React from 'react'; | ||
StyleSheet, | ||
SafeAreaView | ||
SafeAreaView, | ||
Platform, | ||
Dimensions | ||
} from 'react-native'; | ||
@@ -16,2 +18,5 @@ | ||
/* dimensions */ | ||
const { height, width } = Dimensions.get('window') | ||
export default class TWLoginButton extends React.Component { | ||
@@ -99,7 +104,7 @@ constructor(props) { | ||
</View> | ||
<Modal visible={this.state.isVisible} animationType="slide"> | ||
<Modal visible={this.state.isVisible} animationType="slide" onRequestClose={() => { }}> | ||
<SafeAreaView style={[styles.safeArea, { backgroundColor: this.props.headerColor }]}> | ||
<View style={[styles.modalHeader, { backgroundColor: this.props.headerColor }, this.props.headerStyle]}> | ||
<TouchableOpacity onPress={this.onClosePress} style={[styles.closeButton, this.props.closeStyle]}> | ||
<Text style={[styles.closeButtonText, this.props.closeTextStyle]}>{this.props.closeLabel}</Text> | ||
<Text style={[styles.closeButtonText, this.props.closeTextStyle]}>{this.props.closeText}</Text> | ||
</TouchableOpacity> | ||
@@ -134,3 +139,4 @@ </View> | ||
flexDirection: "row", | ||
justifyContent: "flex-start" | ||
justifyContent: "flex-start", | ||
paddingTop: (Platform.OS === "ios" && width === 414) ? 20 : 0 | ||
}, | ||
@@ -137,0 +143,0 @@ closeButton: { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1888478
25
656
209