Skip to content

Custom Urdu Keyboard #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ZainabShakeel opened this issue Mar 2, 2020 · 3 comments
Open

Custom Urdu Keyboard #7

ZainabShakeel opened this issue Mar 2, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@ZainabShakeel
Copy link

I want to Add my Custom keyboard in urdu language which is already defined in urdu_keyboard.xml file with codes. How can i add this keyboard in react native app ??
key

@khat33b
Copy link
Member

khat33b commented Mar 4, 2020

Salaam Zainab. I made this library for the Latin alphabet. To use it for Urdu, you will have to clone the project and modify the src yourself. These are the steps you need to do:

  1. keyboardData.json file: It contains a list of the lines of the keyboard. Each line is a list of characters as it would appear. You will need to add more lines to this list which contain the Urdu characters. There is also an option for setting the width for large buttons.
  2. index.js file: In the constructor, add your index emailUrduIndices to the this.allIndices variable and a custom input type textEmailUrdu to the initialIndices variable. In the shouldComponentUpdate method, add another condition else if (nextProps.inputType === "textSearch") index = searchIndices;. If you want to change the text of the keyboard on the press of a button, add the code in onPress similar to how it is done for Latin characters.

If you need any more information, feel free to ask. Also if you are successful, please submit a pull request.

@khat33b khat33b added the enhancement New feature or request label Mar 6, 2020
@ZainabShakeel
Copy link
Author

Thank u soo much as long as i try this . Will ask you if needed help :)

@Msalmanzafar
Copy link

Salam

Anyone has idea for URDU keyboard,
I want to create custom keyboard for URDU content, also how to add or create words in TextInput using customize layout and words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants