2016-08-23 108 views

回答

1

您可以通過鍵盤事件訪問鍵盤細節。

數據格式:

Object { "height": 282, "screenX": 0, "screenY": 401.4285583496094, "width": 411.4285583496094, }

你可以叫從而訪問它們:

import { Keyboard } from 'react-native' 

keyboardDidShow (e) { 
    const { height, screenX, screenY, width } = e.endCoordinates.height 
    console.log(height) 
}