From dd19265840191550fedc429da6f85928f4091a98 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Mon, 30 Mar 2020 22:33:38 +0200 Subject: [PATCH] KeyboardAvoidingView docs minor improvements --- docs/keyboardavoidingview.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/keyboardavoidingview.md b/docs/keyboardavoidingview.md index dc5be660002..3b40edfd2fe 100644 --- a/docs/keyboardavoidingview.md +++ b/docs/keyboardavoidingview.md @@ -3,7 +3,7 @@ id: keyboardavoidingview title: KeyboardAvoidingView --- -It is a component to solve the common problem of views that need to move out of the way of the virtual keyboard. It can automatically adjust either its height, position, or bottom padding based on the position of the keyboard. +It is a component to solve the common problem of views that need to move out of the way of the virtual keyboard. It can automatically adjust either its height, position, or bottom padding based on the keyboard height. ## Example @@ -11,10 +11,10 @@ It is a component to solve the common problem of views that need to move out of import React, { Component } from 'react'; import { View, KeyboardAvoidingView, TextInput, StyleSheet, Text, Platform, TouchableWithoutFeedback, Button, Keyboard } from 'react-native'; -const keyBoardAvoidingComponent = () => { +const KeyboardAvoidingComponent = () => { return ( @@ -55,7 +55,7 @@ const styles = StyleSheet.create({ } }); -export default keyBoardAvoidingComponent; +export default KeyboardAvoidingComponent; ``` ---