From 55d844707080bc35449164c362d4f45e45233e7e Mon Sep 17 00:00:00 2001 From: Levi Buzolic Date: Mon, 10 Dec 2018 12:09:03 -0800 Subject: [PATCH] Map textContentType strings to Objective-C constants (#22579) Summary: Fixes #22578 Currently the only `textContentType` values that work are: `username`, `password`, `location`, `name` and `nickname`. This is due to the strings provided by React Native not matching up with the underlying string constants used in iOS (with the exception of the aforementioned types). Issue #22578 has more detail examples/explanation. Pull Request resolved: https://github.com/facebook/react-native/pull/22579 Differential Revision: D13402177 Pulled By: shergin fbshipit-source-id: 55f4a2029cd3ea1fb4834e9f56d2df5a05b31b4e --- js/TextInputExample.ios.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js/TextInputExample.ios.js b/js/TextInputExample.ios.js index 64fd1cbb293..b2d574dcae0 100644 --- a/js/TextInputExample.ios.js +++ b/js/TextInputExample.ios.js @@ -1085,4 +1085,19 @@ exports.examples = [ ); }, }, + { + title: 'Text Content Type', + render: function() { + return ( + + + + + + + + + ); + }, + }, ];