Skip to content
This repository was archived by the owner on Nov 23, 2020. It is now read-only.

Custom style for Sticky view #90

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions KeyboardView.js
Original file line number Diff line number Diff line change
@@ -38,12 +38,14 @@ export default class extends Component {
onHide: PropTypes.func,
hideWhenKeyboardIsDismissed: PropTypes.bool,
contentVisible: PropTypes.bool,
keyboardPlaceholderHeight: PropTypes.number
keyboardPlaceholderHeight: PropTypes.number,
stickyViewStyle: PropTypes.object,
};

static defaultProps = {
hideWhenKeyboardIsDismissed: true,
contentVisible: true
contentVisible: true,
stickyViewStyle: {}
};

static dismiss = isIOS ?
@@ -96,8 +98,12 @@ export default class extends Component {
{cover}
</View>
{stickyView && (
<View style={styles.androidInputAvoid}>
{stickyView}
<View style={[{
marginBottom: 70
}, this.props.stickyViewStyle]}>
<View style={styles.androidInputAvoid}>
{stickyView}
</View>
</View>
)}
</KeyboardCoverView>
17 changes: 10 additions & 7 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -11,26 +11,29 @@ buildscript {
apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "25.0.0"
compileSdkVersion 28
buildToolsVersion "28.0.3"

defaultConfig {
minSdkVersion 16
targetSdkVersion 23
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
// lintOptions {
// abortOnError false
// }
}

repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$projectDir/../../../node_modules/react-native/android"
// url "$projectDir/../../../node_modules/react-native/android"
// url "$rootDir/../node_modules/react-native/android"
url "$projectDir/../node_modules/react-native/android"
// maven { url "$projectDir/../node_modules/react-native/android" }
}
}