Git Product home page Git Product logo

react-native-yusha-customkeyboard's People

Contributors

lyxia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-native-yusha-customkeyboard's Issues

嵌套在Modal里将无法使用

因为键盘在Modal下层,
修改git项目的/RNDemo/App.js

/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  StyleSheet,
  Modal,
  View,
  Button,
  Text
} from 'react-native';

require('./js/RegisterKeyboard')
import * as CustomKeyboard from 'react-native-yusha-customkeyboard'

export default class App extends Component {
  constructor(props){
    super(props)
    this.state = {
      visible: false
    }
  }
  render() {
    return (
      <View>
        <Modal
        animationType={'none'}
        transparent={true}
        visible={this.state.visible}
        onRequestClose={()=>{this.setState({visible: false})}}>


        <CustomKeyboard.AwareCusKeyBoardScrollView style={{flex: 1}}>
          <CustomKeyboard.CustomTextInput
              customKeyboardType="numberKeyBoard"
              placeholder="numberKeyBoard"
              style={{marginTop: 20}}
          />
          <CustomKeyboard.CustomTextInput
            customKeyboardType="numberKeyBoardWithDot"
            placeholder="numberKeyBoardWithDot"
          />
          <CustomKeyboard.CustomTextInput
            customKeyboardType="safeKeyBoard"
            placeholder="safeKeyBoard"
          />
          <CustomKeyboard.CustomTextInput
                customKeyboardType="testKeyboard"
                placeholder="testKeyboard"
            />
        </CustomKeyboard.AwareCusKeyBoardScrollView>



        <Button title={'观察'} onPress={()=>{this.setState({visible: false})}}></Button>
        </Modal>
        <Button title={'显示'} onPress={()=>{this.setState({visible: true})}}></Button>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    height: 700,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});

autofoucs issue in android

Hi

I am using this module and its working great but the issue is

when I keep autofocus to the textInput in iOS working fine but in android it is getting the default keyboard again when we click on the textInput then it shows the custom keyboard.

Can you tell me how to solve this
I used same code as in RNdemo project

React-Native : 0.57.1
react-native-yusha-customkeyboard: "^0.1.3",

点击键盘闪动

运行demo,点击键盘,键盘会出现随机的闪动情况,不知道是渲染效率问题还是代码问题。。。

iOS RCTTextField

[RCTTextField setInputView:]: unrecognized selector sent to instance

android中键盘上方显示黑框

image
在ios中显示正常,android中显示黑边, 请问是什么原因造成的 该如何解决?
react-native: 0.57.0
react-native-yusha-customkeyboard: 0.1.2
react-native-svg:6.2.1

测试过demo代码没有问题

同时使用多个input框时,无法收起键盘

当一个页面同时使用多个input框时,从任意一个唤起键盘后,点击其他的输入框后无法点击完成收起键盘,只能回到最初唤起键盘的输入框内点击完成按钮才能收起键盘,还望解决一下!

iphoneX中自定义键盘问题。

inputView.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 252);

keyBoard: {
backgroundColor: '#f6f5f2',
height: DeviceInfo.isIPhoneX_deprecated ? 286 : 252,
},

会导致在IphoneX中 ,自定义的点击事件没办法响应

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.