├── .DS_Store ├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── examples ├── BasicExample │ ├── __tests__ │ │ ├── index.android.js │ │ └── index.ios.js │ ├── android │ │ ├── app │ │ │ ├── BUCK │ │ │ ├── build.gradle │ │ │ ├── proguard-rules.pro │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── basicexample │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ │ └── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── keystores │ │ │ ├── BUCK │ │ │ └── debug.keystore.properties │ │ └── settings.gradle │ ├── app.js │ ├── app.json │ ├── index.android.js │ ├── index.ios.js │ ├── ios │ │ ├── BasicExample-tvOS │ │ │ └── Info.plist │ │ ├── BasicExample-tvOSTests │ │ │ └── Info.plist │ │ ├── BasicExample.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcuserdata │ │ │ │ │ └── Nicorus.xcuserdatad │ │ │ │ │ └── UserInterfaceState.xcuserstate │ │ │ ├── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ │ ├── BasicExample-tvOS.xcscheme │ │ │ │ │ └── BasicExample.xcscheme │ │ │ └── xcuserdata │ │ │ │ └── Nicorus.xcuserdatad │ │ │ │ └── xcschemes │ │ │ │ └── xcschememanagement.plist │ │ ├── BasicExample │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Base.lproj │ │ │ │ └── LaunchScreen.xib │ │ │ ├── Images.xcassets │ │ │ │ └── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ └── main.m │ │ └── BasicExampleTests │ │ │ ├── BasicExampleTests.m │ │ │ └── Info.plist │ ├── jsconfig.json │ └── package.json ├── CustomLibraryPicker │ ├── __tests__ │ │ ├── index.android.js │ │ └── index.ios.js │ ├── android │ │ ├── app │ │ │ ├── BUCK │ │ │ ├── build.gradle │ │ │ ├── proguard-rules.pro │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── customlibrarypicker │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ │ └── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── keystores │ │ │ ├── BUCK │ │ │ └── debug.keystore.properties │ │ └── settings.gradle │ ├── app.js │ ├── app.json │ ├── index.android.js │ ├── index.ios.js │ ├── ios │ │ ├── CustomLibraryPicker-tvOS │ │ │ └── Info.plist │ │ ├── CustomLibraryPicker-tvOSTests │ │ │ └── Info.plist │ │ ├── CustomLibraryPicker.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcuserdata │ │ │ │ │ └── Nicorus.xcuserdatad │ │ │ │ │ └── UserInterfaceState.xcuserstate │ │ │ ├── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ │ ├── CustomLibraryPicker-tvOS.xcscheme │ │ │ │ │ └── CustomLibraryPicker.xcscheme │ │ │ └── xcuserdata │ │ │ │ └── Nicorus.xcuserdatad │ │ │ │ └── xcschemes │ │ │ │ └── xcschememanagement.plist │ │ ├── CustomLibraryPicker │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Base.lproj │ │ │ │ └── LaunchScreen.xib │ │ │ ├── Images.xcassets │ │ │ │ └── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ └── main.m │ │ └── CustomLibraryPickerTests │ │ │ ├── CustomLibraryPickerTests.m │ │ │ └── Info.plist │ ├── jsconfig.json │ └── package.json └── CustomPicker │ ├── .babelrc │ ├── .buckconfig │ ├── .flowconfig │ ├── .gitattributes │ ├── .gitignore │ ├── .vscode │ ├── launchReactNative.js │ └── settings.json │ ├── .watchmanconfig │ ├── ModalPickerImage │ ├── BaseComponent.js │ ├── index.js │ └── style.js │ ├── __tests__ │ ├── index.android.js │ └── index.ios.js │ ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── custompicker │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── keystores │ │ ├── BUCK │ │ └── debug.keystore.properties │ └── settings.gradle │ ├── app.js │ ├── app.json │ ├── index.android.js │ ├── index.ios.js │ ├── ios │ ├── CustomPicker-tvOS │ │ └── Info.plist │ ├── CustomPicker-tvOSTests │ │ └── Info.plist │ ├── CustomPicker.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── CustomPicker-tvOS.xcscheme │ │ │ └── CustomPicker.xcscheme │ ├── CustomPicker │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── CustomPickerTests │ │ ├── CustomPickerTests.m │ │ └── Info.plist │ ├── jsconfig.json │ └── package.json ├── lib ├── .DS_Store ├── country.js ├── countryPicker.js ├── index.js ├── phoneNumber.js ├── resources │ ├── .DS_Store │ ├── countries.json │ ├── flags │ │ ├── .DS_Store │ │ ├── images │ │ │ ├── ad.png │ │ │ ├── ae.png │ │ │ ├── af.png │ │ │ ├── ag.png │ │ │ ├── ai.png │ │ │ ├── al.png │ │ │ ├── am.png │ │ │ ├── ao.png │ │ │ ├── ar.png │ │ │ ├── as.png │ │ │ ├── at.png │ │ │ ├── au.png │ │ │ ├── aw.png │ │ │ ├── ax.png │ │ │ ├── az.png │ │ │ ├── ba.png │ │ │ ├── bb.png │ │ │ ├── bd.png │ │ │ ├── be.png │ │ │ ├── bf.png │ │ │ ├── bg.png │ │ │ ├── bh.png │ │ │ ├── bi.png │ │ │ ├── bj.png │ │ │ ├── bl.png │ │ │ ├── bm.png │ │ │ ├── bn.png │ │ │ ├── bo.png │ │ │ ├── bq.png │ │ │ ├── br.png │ │ │ ├── bs.png │ │ │ ├── bt.png │ │ │ ├── bw.png │ │ │ ├── by.png │ │ │ ├── bz.png │ │ │ ├── ca.png │ │ │ ├── cc.png │ │ │ ├── cd.png │ │ │ ├── cf.png │ │ │ ├── cg.png │ │ │ ├── ch.png │ │ │ ├── ci.png │ │ │ ├── ck.png │ │ │ ├── cl.png │ │ │ ├── cm.png │ │ │ ├── cn.png │ │ │ ├── co.png │ │ │ ├── cr.png │ │ │ ├── cu.png │ │ │ ├── cv.png │ │ │ ├── cw.png │ │ │ ├── cx.png │ │ │ ├── cy.png │ │ │ ├── cz.png │ │ │ ├── de.png │ │ │ ├── dj.png │ │ │ ├── dk.png │ │ │ ├── dm.png │ │ │ ├── do.png │ │ │ ├── dz.png │ │ │ ├── ec.png │ │ │ ├── ee.png │ │ │ ├── eg.png │ │ │ ├── eh.png │ │ │ ├── er.png │ │ │ ├── es.png │ │ │ ├── et.png │ │ │ ├── fi.png │ │ │ ├── fj.png │ │ │ ├── fk.png │ │ │ ├── fm.png │ │ │ ├── fo.png │ │ │ ├── fr.png │ │ │ ├── ga.png │ │ │ ├── gb.png │ │ │ ├── gd.png │ │ │ ├── ge.png │ │ │ ├── gf.png │ │ │ ├── gg.png │ │ │ ├── gh.png │ │ │ ├── gi.png │ │ │ ├── gm.png │ │ │ ├── gn.png │ │ │ ├── gp.png │ │ │ ├── gq.png │ │ │ ├── gr.png │ │ │ ├── gt.png │ │ │ ├── gu.png │ │ │ ├── gw.png │ │ │ ├── gy.png │ │ │ ├── hk.png │ │ │ ├── hn.png │ │ │ ├── hr.png │ │ │ ├── ht.png │ │ │ ├── hu.png │ │ │ ├── id.png │ │ │ ├── ie.png │ │ │ ├── il.png │ │ │ ├── im.png │ │ │ ├── in.png │ │ │ ├── io.png │ │ │ ├── iq.png │ │ │ ├── ir.png │ │ │ ├── is.png │ │ │ ├── it.png │ │ │ ├── je.png │ │ │ ├── jm.png │ │ │ ├── jo.png │ │ │ ├── jp.png │ │ │ ├── ke.png │ │ │ ├── kg.png │ │ │ ├── kh.png │ │ │ ├── ki.png │ │ │ ├── km.png │ │ │ ├── kn.png │ │ │ ├── kp.png │ │ │ ├── kr.png │ │ │ ├── ks.png │ │ │ ├── kw.png │ │ │ ├── ky.png │ │ │ ├── kz.png │ │ │ ├── la.png │ │ │ ├── lb.png │ │ │ ├── lc.png │ │ │ ├── li.png │ │ │ ├── lk.png │ │ │ ├── lr.png │ │ │ ├── ls.png │ │ │ ├── lt.png │ │ │ ├── lu.png │ │ │ ├── lv.png │ │ │ ├── ly.png │ │ │ ├── ma.png │ │ │ ├── mc.png │ │ │ ├── md.png │ │ │ ├── me.png │ │ │ ├── mf.png │ │ │ ├── mg.png │ │ │ ├── mh.png │ │ │ ├── mk.png │ │ │ ├── ml.png │ │ │ ├── mm.png │ │ │ ├── mn.png │ │ │ ├── mo.png │ │ │ ├── mp.png │ │ │ ├── mq.png │ │ │ ├── mr.png │ │ │ ├── ms.png │ │ │ ├── mt.png │ │ │ ├── mu.png │ │ │ ├── mv.png │ │ │ ├── mw.png │ │ │ ├── mx.png │ │ │ ├── my.png │ │ │ ├── mz.png │ │ │ ├── na.png │ │ │ ├── nc.png │ │ │ ├── ne.png │ │ │ ├── nf.png │ │ │ ├── ng.png │ │ │ ├── ni.png │ │ │ ├── nl.png │ │ │ ├── no.png │ │ │ ├── np.png │ │ │ ├── nr.png │ │ │ ├── nu.png │ │ │ ├── nz.png │ │ │ ├── om.png │ │ │ ├── pa.png │ │ │ ├── pe.png │ │ │ ├── pf.png │ │ │ ├── pg.png │ │ │ ├── ph.png │ │ │ ├── pk.png │ │ │ ├── pl.png │ │ │ ├── pm.png │ │ │ ├── pr.png │ │ │ ├── ps.png │ │ │ ├── pt.png │ │ │ ├── pw.png │ │ │ ├── py.png │ │ │ ├── qa.png │ │ │ ├── re.png │ │ │ ├── ro.png │ │ │ ├── rs.png │ │ │ ├── ru.png │ │ │ ├── rw.png │ │ │ ├── sa.png │ │ │ ├── sb.png │ │ │ ├── sc.png │ │ │ ├── sd.png │ │ │ ├── se.png │ │ │ ├── sg.png │ │ │ ├── sh.png │ │ │ ├── si.png │ │ │ ├── sj.png │ │ │ ├── sk.png │ │ │ ├── sl.png │ │ │ ├── sm.png │ │ │ ├── sn.png │ │ │ ├── so.png │ │ │ ├── sr.png │ │ │ ├── ss.png │ │ │ ├── st.png │ │ │ ├── sv.png │ │ │ ├── sx.png │ │ │ ├── sy.png │ │ │ ├── sz.png │ │ │ ├── tc.png │ │ │ ├── td.png │ │ │ ├── tg.png │ │ │ ├── th.png │ │ │ ├── tj.png │ │ │ ├── tk.png │ │ │ ├── tl.png │ │ │ ├── tm.png │ │ │ ├── tn.png │ │ │ ├── to.png │ │ │ ├── tr.png │ │ │ ├── tt.png │ │ │ ├── tv.png │ │ │ ├── tw.png │ │ │ ├── tz.png │ │ │ ├── ua.png │ │ │ ├── ug.png │ │ │ ├── us.png │ │ │ ├── uy.png │ │ │ ├── uz.png │ │ │ ├── va.png │ │ │ ├── vc.png │ │ │ ├── ve.png │ │ │ ├── vg.png │ │ │ ├── vi.png │ │ │ ├── vn.png │ │ │ ├── vu.png │ │ │ ├── wf.png │ │ │ ├── ws.png │ │ │ ├── ye.png │ │ │ ├── yt.png │ │ │ ├── za.png │ │ │ ├── zm.png │ │ │ └── zw.png │ │ └── index.js │ └── numberType.json └── styles.js └── package.json /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # nyc test coverage 18 | .nyc_output 19 | 20 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 21 | .grunt 22 | 23 | # node-waf configuration 24 | .lock-wscript 25 | 26 | # Compiled binary addons (http://nodejs.org/api/addons.html) 27 | build/Release 28 | 29 | # Dependency directories 30 | node_modules 31 | jspm_packages 32 | 33 | # Optional npm cache directory 34 | .npm 35 | 36 | # Optional REPL history 37 | .node_repl_history 38 | 39 | # IDEs files 40 | .vscode 41 | .idea 42 | 43 | # MacOS files 44 | .DS_Store 45 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "vsicons.presets.angular": false 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 thegamenicorus 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /examples/BasicExample/__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /examples/BasicExample/__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /examples/BasicExample/android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.basicexample', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.basicexample', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /examples/BasicExample/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/java/com/basicexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.basicexample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "BasicExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/java/com/basicexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.basicexample; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | import com.facebook.soloader.SoLoader; 12 | 13 | import java.util.Arrays; 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | return Arrays.asList( 27 | new MainReactPackage() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/BasicExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/BasicExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/BasicExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/BasicExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BasicExample 3 | 4 | -------------------------------------------------------------------------------- /examples/BasicExample/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/BasicExample/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/BasicExample/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /examples/BasicExample/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/BasicExample/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /examples/BasicExample/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /examples/BasicExample/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /examples/BasicExample/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /examples/BasicExample/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /examples/BasicExample/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'BasicExample' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /examples/BasicExample/app.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { StyleSheet, Text, View, TouchableOpacity } from "react-native"; 3 | 4 | import PhoneInput from "react-native-phone-input"; 5 | 6 | class App extends Component { 7 | constructor() { 8 | super(); 9 | 10 | this.state = { 11 | valid: "", 12 | type: "", 13 | value: "" 14 | }; 15 | 16 | this.updateInfo = this.updateInfo.bind(this); 17 | this.renderInfo = this.renderInfo.bind(this); 18 | } 19 | 20 | updateInfo() { 21 | this.setState({ 22 | valid: this.phone.isValidNumber(), 23 | type: this.phone.getNumberType(), 24 | value: this.phone.getValue() 25 | }); 26 | } 27 | 28 | renderInfo() { 29 | if (this.state.value) { 30 | return ( 31 | 32 | 33 | Is Valid:{" "} 34 | 35 | {this.state.valid.toString()} 36 | 37 | 38 | 39 | Type: {this.state.type} 40 | 41 | 42 | Value:{" "} 43 | {this.state.value} 44 | 45 | 46 | ); 47 | } 48 | } 49 | 50 | render() { 51 | return ( 52 | 53 | { 55 | this.phone = ref; 56 | }} 57 | /> 58 | 59 | 60 | Get Info 61 | 62 | 63 | {this.renderInfo()} 64 | 65 | ); 66 | } 67 | } 68 | 69 | let styles = StyleSheet.create({ 70 | container: { 71 | flex: 1, 72 | alignItems: "center", 73 | padding: 20, 74 | paddingTop: 60 75 | }, 76 | info: { 77 | // width: 200, 78 | borderRadius: 5, 79 | backgroundColor: "#f0f0f0", 80 | padding: 10, 81 | marginTop: 20 82 | }, 83 | button: { 84 | marginTop: 20, 85 | padding: 10 86 | } 87 | }); 88 | 89 | module.exports = App; 90 | -------------------------------------------------------------------------------- /examples/BasicExample/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BasicExample", 3 | "displayName": "BasicExample" 4 | } -------------------------------------------------------------------------------- /examples/BasicExample/index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | } from 'react-native'; 11 | 12 | import App from './app' 13 | 14 | AppRegistry.registerComponent('BasicExample', () => App); 15 | -------------------------------------------------------------------------------- /examples/BasicExample/index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | } from 'react-native'; 11 | 12 | import App from './app' 13 | 14 | AppRegistry.registerComponent('BasicExample', () => App); -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample.xcodeproj/project.xcworkspace/xcuserdata/Nicorus.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/BasicExample/ios/BasicExample.xcodeproj/project.xcworkspace/xcuserdata/Nicorus.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample.xcodeproj/xcshareddata/xcschemes/BasicExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample.xcodeproj/xcuserdata/Nicorus.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | BasicExample-tvOS.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 1 11 | 12 | BasicExample.xcscheme_^#shared#^_ 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 00E356ED1AD99517003FC87E 21 | 22 | primary 23 | 24 | 25 | 13B07F861A680F5B00A75B9A 26 | 27 | primary 28 | 29 | 30 | 2D02E47A1E0B4A5D006451C7 31 | 32 | primary 33 | 34 | 35 | 2D02E48F1E0B4A5D006451C7 36 | 37 | primary 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"BasicExample" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | BasicExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExample/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExampleTests/BasicExampleTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface BasicExampleTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation BasicExampleTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /examples/BasicExample/ios/BasicExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /examples/BasicExample/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": true 5 | }, 6 | "exclude": [ 7 | "node_modules" 8 | ] 9 | } -------------------------------------------------------------------------------- /examples/BasicExample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BasicExample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "15.4.2", 11 | "react-native": "0.41.2", 12 | "react-native-phone-input": "^0.1.4" 13 | }, 14 | "devDependencies": { 15 | "babel-jest": "18.0.0", 16 | "babel-preset-react-native": "1.9.1", 17 | "jest": "18.1.0", 18 | "react-test-renderer": "15.4.2" 19 | }, 20 | "jest": { 21 | "preset": "react-native" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.customlibrarypicker', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.customlibrarypicker', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/java/com/customlibrarypicker/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.customlibrarypicker; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "CustomLibraryPicker"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/java/com/customlibrarypicker/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.customlibrarypicker; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | import com.facebook.soloader.SoLoader; 12 | 13 | import java.util.Arrays; 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | return Arrays.asList( 27 | new MainReactPackage() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomLibraryPicker/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomLibraryPicker/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomLibraryPicker/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomLibraryPicker/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CustomLibraryPicker 3 | 4 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomLibraryPicker/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'CustomLibraryPicker' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/app.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { StyleSheet, View } from 'react-native'; 3 | 4 | import PhoneInput from 'react-native-phone-input'; 5 | import CountryPicker from 'react-native-country-picker-modal'; 6 | 7 | class App extends Component { 8 | constructor() { 9 | super(); 10 | 11 | this.onPressFlag = this.onPressFlag.bind(this); 12 | this.selectCountry = this.selectCountry.bind(this); 13 | this.state = { 14 | cca2: 'US', 15 | }; 16 | } 17 | 18 | componentDidMount() { 19 | this.setState({ 20 | pickerData: this.phone.getPickerData(), 21 | }); 22 | } 23 | 24 | onPressFlag() { 25 | this.countryPicker.openModal(); 26 | } 27 | 28 | selectCountry(country) { 29 | this.phone.selectCountry(country.cca2.toLowerCase()); 30 | this.setState({ cca2: country.cca2 }); 31 | } 32 | 33 | render() { 34 | return ( 35 | 36 | { 38 | this.phone = ref; 39 | }} 40 | onPressFlag={this.onPressFlag} 41 | /> 42 | 43 | { 45 | this.countryPicker = ref; 46 | }} 47 | onChange={value => this.selectCountry(value)} 48 | translation="eng" 49 | cca2={this.state.cca2} 50 | > 51 | 52 | 53 | 54 | ); 55 | } 56 | } 57 | 58 | let styles = StyleSheet.create({ 59 | container: { 60 | flex: 1, 61 | alignItems: 'center', 62 | padding: 20, 63 | paddingTop: 60, 64 | }, 65 | }); 66 | 67 | module.exports = App; 68 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CustomLibraryPicker", 3 | "displayName": "CustomLibraryPicker" 4 | } -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | } from 'react-native'; 11 | 12 | import App from './app' 13 | 14 | AppRegistry.registerComponent('CustomLibraryPicker', () => App); 15 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | } from 'react-native'; 11 | 12 | import App from './app' 13 | 14 | AppRegistry.registerComponent('CustomLibraryPicker', () => App); -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker.xcodeproj/project.xcworkspace/xcuserdata/Nicorus.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomLibraryPicker/ios/CustomLibraryPicker.xcodeproj/project.xcworkspace/xcuserdata/Nicorus.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker.xcodeproj/xcuserdata/Nicorus.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CustomLibraryPicker-tvOS.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 1 11 | 12 | CustomLibraryPicker.xcscheme_^#shared#^_ 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 00E356ED1AD99517003FC87E 21 | 22 | primary 23 | 24 | 25 | 13B07F861A680F5B00A75B9A 26 | 27 | primary 28 | 29 | 30 | 2D02E47A1E0B4A5D006451C7 31 | 32 | primary 33 | 34 | 35 | 2D02E48F1E0B4A5D006451C7 36 | 37 | primary 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"CustomLibraryPicker" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | CustomLibraryPicker 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPicker/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPickerTests/CustomLibraryPickerTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface CustomLibraryPickerTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation CustomLibraryPickerTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/ios/CustomLibraryPickerTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": true 5 | }, 6 | "exclude": [ 7 | "node_modules" 8 | ] 9 | } -------------------------------------------------------------------------------- /examples/CustomLibraryPicker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CustomLibraryPicker", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "15.4.2", 11 | "react-native": "0.41.2", 12 | "react-native-country-picker-modal": "^0.2.8", 13 | "react-native-phone-input": "^0.1.5" 14 | }, 15 | "devDependencies": { 16 | "babel-jest": "18.0.0", 17 | "babel-preset-react-native": "1.9.1", 18 | "jest": "18.1.0", 19 | "react-test-renderer": "15.4.2" 20 | }, 21 | "jest": { 22 | "preset": "react-native" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/CustomPicker/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /examples/CustomPicker/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /examples/CustomPicker/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | module.system=haste 26 | 27 | experimental.strict_type_args=true 28 | 29 | munge_underscores=true 30 | 31 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 32 | 33 | suppress_type=$FlowIssue 34 | suppress_type=$FlowFixMe 35 | suppress_type=$FixMe 36 | 37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 40 | 41 | unsafe.enable_getters_and_setters=true 42 | 43 | [version] 44 | ^0.37.0 45 | -------------------------------------------------------------------------------- /examples/CustomPicker/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /examples/CustomPicker/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | android/app/libs 43 | *.keystore 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/Preview.html 54 | fastlane/screenshots 55 | -------------------------------------------------------------------------------- /examples/CustomPicker/.vscode/launchReactNative.js: -------------------------------------------------------------------------------- 1 | // This file is automatically generated by vscode-react-native@0.2.5 2 | // Please do not modify it manually. All changes will be lost. 3 | try { 4 | var path = require("path"); 5 | var Launcher = require("/Users/Nicorus/.vscode/extensions/vsmobile.vscode-react-native-0.2.5/out/debugger/launcher.js").Launcher; 6 | new Launcher("/Users/Nicorus/Desktop/Work/CustomPicker", "/Users/Nicorus/Desktop/Work/CustomPicker").launch(); 7 | } catch (e) { 8 | throw new Error("Unable to launch application. Try deleting .vscode/launchReactNative.js and restarting vscode."); 9 | } -------------------------------------------------------------------------------- /examples/CustomPicker/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /examples/CustomPicker/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /examples/CustomPicker/ModalPickerImage/BaseComponent.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React from 'react'; 4 | 5 | export default class BaseComponent extends React.Component { 6 | _bind(...methods) { 7 | methods.forEach( (method) => this[method] = this[method].bind(this) ); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /examples/CustomPicker/ModalPickerImage/style.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import { StyleSheet, Dimensions } from 'react-native'; 4 | 5 | const {height, width} = Dimensions.get('window'); 6 | 7 | const PADDING = 8; 8 | const BORDER_RADIUS = 5; 9 | const FONT_SIZE = 16; 10 | const HIGHLIGHT_COLOR = 'rgba(0,118,255,0.9)'; 11 | const OPTION_CONTAINER_HEIGHT = 400; 12 | 13 | export default StyleSheet.create({ 14 | 15 | overlayStyle: { 16 | width: width, 17 | height: height, 18 | backgroundColor: 'rgba(0,0,0,0.7)' 19 | }, 20 | 21 | optionContainer: { 22 | borderRadius:BORDER_RADIUS, 23 | width:width*0.8, 24 | height:OPTION_CONTAINER_HEIGHT, 25 | backgroundColor:'rgba(255,255,255,0.8)', 26 | left:width*0.1, 27 | top:(height-OPTION_CONTAINER_HEIGHT)/2 28 | }, 29 | 30 | cancelContainer: { 31 | left:width*0.1, 32 | top:(height-OPTION_CONTAINER_HEIGHT)/2 + 10 33 | }, 34 | 35 | selectStyle: { 36 | flex: 1, 37 | borderColor: '#ccc', 38 | borderWidth: 1, 39 | padding: 8, 40 | borderRadius: BORDER_RADIUS 41 | }, 42 | 43 | selectTextStyle: { 44 | textAlign: 'center', 45 | color: '#333', 46 | fontSize: FONT_SIZE 47 | }, 48 | 49 | cancelStyle: { 50 | borderRadius: BORDER_RADIUS, 51 | width: width * 0.8, 52 | backgroundColor: 'rgba(255,255,255,0.8)', 53 | padding: PADDING 54 | }, 55 | 56 | cancelTextStyle: { 57 | textAlign: 'center', 58 | color: '#333', 59 | fontSize: FONT_SIZE 60 | }, 61 | 62 | optionStyle: { 63 | padding: PADDING, 64 | borderBottomWidth: 1, 65 | borderBottomColor: '#ccc' 66 | }, 67 | 68 | optionTextStyle: { 69 | textAlign: 'center', 70 | fontSize: FONT_SIZE, 71 | color: HIGHLIGHT_COLOR 72 | }, 73 | 74 | sectionStyle: { 75 | padding: PADDING * 2, 76 | borderBottomWidth: 1, 77 | borderBottomColor: '#ccc' 78 | }, 79 | 80 | sectionTextStyle: { 81 | textAlign: 'center', 82 | fontSize: FONT_SIZE 83 | } 84 | }); -------------------------------------------------------------------------------- /examples/CustomPicker/__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /examples/CustomPicker/__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.custompicker', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.custompicker', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/java/com/custompicker/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.custompicker; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "CustomPicker"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/java/com/custompicker/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.custompicker; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | import com.facebook.soloader.SoLoader; 12 | 13 | import java.util.Arrays; 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | return Arrays.asList( 27 | new MainReactPackage() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomPicker/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomPicker/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomPicker/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomPicker/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CustomPicker 3 | 4 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/examples/CustomPicker/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /examples/CustomPicker/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 6 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /examples/CustomPicker/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'CustomPicker' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /examples/CustomPicker/app.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { StyleSheet, View } from 'react-native'; 3 | 4 | import PhoneInput from 'react-native-phone-input'; 5 | import ModalPickerImage from './ModalPickerImage'; 6 | 7 | class App extends Component { 8 | constructor() { 9 | super(); 10 | 11 | this.onPressFlag = this.onPressFlag.bind(this); 12 | this.selectCountry = this.selectCountry.bind(this); 13 | this.state = { 14 | pickerData: null, 15 | }; 16 | } 17 | 18 | componentDidMount() { 19 | this.setState({ 20 | pickerData: this.phone.getPickerData(), 21 | }); 22 | } 23 | 24 | onPressFlag() { 25 | this.myCountryPicker.open(); 26 | } 27 | 28 | selectCountry(country) { 29 | this.phone.selectCountry(country.iso2); 30 | } 31 | 32 | render() { 33 | return ( 34 | 35 | { 37 | this.phone = ref; 38 | }} 39 | onPressFlag={this.onPressFlag} 40 | /> 41 | 42 | { 44 | this.myCountryPicker = ref; 45 | }} 46 | data={this.state.pickerData} 47 | onChange={(country) => { 48 | this.selectCountry(country); 49 | }} 50 | cancelText="Cancel" 51 | /> 52 | 53 | ); 54 | } 55 | } 56 | 57 | let styles = StyleSheet.create({ 58 | container: { 59 | flex: 1, 60 | alignItems: 'center', 61 | padding: 20, 62 | paddingTop: 60, 63 | }, 64 | }); 65 | 66 | module.exports = App; 67 | -------------------------------------------------------------------------------- /examples/CustomPicker/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CustomPicker", 3 | "displayName": "CustomPicker" 4 | } -------------------------------------------------------------------------------- /examples/CustomPicker/index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | } from 'react-native'; 11 | 12 | import App from './app' 13 | 14 | AppRegistry.registerComponent('CustomPicker', () => App); 15 | -------------------------------------------------------------------------------- /examples/CustomPicker/index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | } from 'react-native'; 11 | 12 | import App from './app' 13 | 14 | AppRegistry.registerComponent('CustomPicker', () => App); -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPicker-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPicker-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPicker/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPicker/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"CustomPicker" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPicker/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPicker/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPicker/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | CustomPicker 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPicker/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPickerTests/CustomPickerTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface CustomPickerTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation CustomPickerTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /examples/CustomPicker/ios/CustomPickerTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /examples/CustomPicker/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": true 5 | }, 6 | "exclude": [ 7 | "node_modules" 8 | ] 9 | } -------------------------------------------------------------------------------- /examples/CustomPicker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CustomPicker", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "15.4.2", 11 | "react-native": "0.41.2", 12 | "react-native-phone-input": "^0.1.5" 13 | }, 14 | "devDependencies": { 15 | "babel-jest": "18.0.0", 16 | "babel-preset-react-native": "1.9.1", 17 | "jest": "18.1.0", 18 | "react-test-renderer": "15.4.2" 19 | }, 20 | "jest": { 21 | "preset": "react-native" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/.DS_Store -------------------------------------------------------------------------------- /lib/country.js: -------------------------------------------------------------------------------- 1 | import { find, orderBy } from 'lodash'; 2 | 3 | let instance = null; 4 | 5 | class Country { 6 | static getInstance() { 7 | if (!instance) { 8 | instance = new Country(); 9 | } 10 | return instance; 11 | } 12 | 13 | constructor() { 14 | this.countryCodes = []; 15 | 16 | this.countriesData = null; 17 | } 18 | 19 | setCustomCountriesData(json) { 20 | this.countriesData = json; 21 | } 22 | 23 | addCountryCode(iso2, dialCode, priority) { 24 | if (!(dialCode in this.countryCodes)) { 25 | this.countryCodes[dialCode] = []; 26 | } 27 | 28 | const index = priority || 0; 29 | this.countryCodes[dialCode][index] = iso2; 30 | } 31 | 32 | getAll() { 33 | if (!this.countries) { 34 | this.countries = orderBy( 35 | this.countriesData || require('./resources/countries.json'), 36 | ['name'], 37 | ['asc'], 38 | ); 39 | } 40 | 41 | return this.countries; 42 | } 43 | 44 | getCountryCodes() { 45 | if (!this.countryCodes.length) { 46 | this.getAll().map((country) => { 47 | this.addCountryCode(country.iso2, country.dialCode, country.priority); 48 | if (country.areaCodes) { 49 | country.areaCodes.map((areaCode) => { 50 | this.addCountryCode(country.iso2, country.dialCode + areaCode); 51 | }); 52 | } 53 | }); 54 | } 55 | return this.countryCodes; 56 | } 57 | 58 | getCountryDataByCode(iso2) { 59 | return find(this.getAll(), country => country.iso2 === iso2); 60 | } 61 | } 62 | 63 | export default Country.getInstance(); 64 | -------------------------------------------------------------------------------- /lib/countryPicker.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Text, TouchableOpacity, View, Modal, Picker } from 'react-native'; 3 | import PropTypes from 'prop-types'; 4 | 5 | import Country from './country'; 6 | import styles from './styles'; 7 | 8 | const PickerItem = Picker.Item; 9 | 10 | const propTypes = { 11 | buttonColor: PropTypes.string, 12 | labels: PropTypes.array, 13 | confirmText: PropTypes.string, 14 | cancelText: PropTypes.string, 15 | itemStyle: PropTypes.object, 16 | onSubmit: PropTypes.func, 17 | onPressCancel: PropTypes.func, 18 | onPressConfirm: PropTypes.func, 19 | }; 20 | 21 | export default class CountryPicker extends Component { 22 | constructor(props) { 23 | super(props); 24 | 25 | this.state = { 26 | buttonColor: this.props.buttonColor || '#007AFF', 27 | modalVisible: false, 28 | selectedCountry: this.props.selectedCountry || Country.getAll()[0], 29 | }; 30 | 31 | this.onPressCancel = this.onPressCancel.bind(this); 32 | this.onPressSubmit = this.onPressSubmit.bind(this); 33 | this.onValueChange = this.onValueChange.bind(this); 34 | } 35 | 36 | componentDidUpdate() { 37 | this.setState({ 38 | selectedCountry: this.props.selectedCountry, 39 | }); 40 | } 41 | 42 | selectCountry(selectedCountry) { 43 | this.setState({ 44 | selectedCountry, 45 | }); 46 | } 47 | 48 | onPressCancel() { 49 | if(this.props.onPressCancel){ 50 | this.props.onPressCancel(); 51 | } 52 | 53 | this.setState({ 54 | modalVisible: false, 55 | }); 56 | } 57 | 58 | onPressSubmit() { 59 | if(this.props.onPressConfirm){ 60 | this.props.onPressConfirm(); 61 | } 62 | 63 | if (this.props.onSubmit) { 64 | this.props.onSubmit(this.state.selectedCountry); 65 | } 66 | 67 | this.setState({ 68 | modalVisible: false, 69 | }); 70 | } 71 | 72 | onValueChange(selectedCountry) { 73 | this.setState({ 74 | selectedCountry, 75 | }); 76 | } 77 | 78 | show() { 79 | this.setState({ 80 | modalVisible: true, 81 | }); 82 | } 83 | 84 | renderItem(country, index) { 85 | return ; 86 | } 87 | 88 | render() { 89 | const { buttonColor } = this.state; 90 | const itemStyle = this.props.itemStyle || {}; 91 | return ( 92 | { 97 | console.log('Country picker has been closed.'); 98 | }} 99 | > 100 | 101 | 107 | 108 | 109 | 110 | {this.props.cancelText || 'Cancel'} 111 | 112 | 113 | 114 | 115 | 116 | {this.props.confirmText || 'Confirm'} 117 | 118 | 119 | 120 | 121 | 122 | { 124 | this.picker = ref; 125 | }} 126 | style={styles.bottomPicker} 127 | selectedValue={this.state.selectedCountry} 128 | onValueChange={country => this.onValueChange(country)} 129 | itemStyle={itemStyle} 130 | mode="dialog" 131 | > 132 | {Country.getAll().map((country, index) => this.renderItem(country, index))} 133 | 134 | 135 | 136 | 137 | 138 | ); 139 | } 140 | } 141 | 142 | CountryPicker.propTypes = propTypes; 143 | -------------------------------------------------------------------------------- /lib/phoneNumber.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | 3 | import Country from './country'; 4 | import numberType from './resources/numberType.json'; 5 | 6 | const libPhoneNumber = require('google-libphonenumber'); 7 | const phoneUtil = libPhoneNumber.PhoneNumberUtil.getInstance(); 8 | const asYouTypeFormatter = libPhoneNumber.AsYouTypeFormatter; 9 | 10 | let instance = null; 11 | 12 | class PhoneNumber { 13 | static getInstance() { 14 | if (!instance) { 15 | instance = new PhoneNumber(); 16 | } 17 | return instance; 18 | } 19 | 20 | getAllCountries() { 21 | return Country.getAll(); 22 | } 23 | 24 | getDialCode(number) { 25 | let dialCode = ''; 26 | // only interested in international numbers (starting with a plus) 27 | if (number.charAt(0) === '+') { 28 | let numericChars = ''; 29 | // iterate over chars 30 | for (let i = 0; i < number.length; i++) { 31 | const c = number.charAt(i); 32 | // if char is number 33 | if (this.isNumeric(c)) { 34 | numericChars += c; 35 | // if current numericChars make a valid dial code 36 | // if (this.countryCodes[numericChars]) { 37 | if (Country.getCountryCodes()[numericChars]) { 38 | // store the actual raw string (useful for matching later) 39 | dialCode = number.substr(0, i + 1); 40 | } 41 | // longest dial code is 4 chars 42 | if (numericChars.length === 4) { 43 | break; 44 | } 45 | } 46 | } 47 | } 48 | return dialCode; 49 | } 50 | 51 | getNumeric(str) { 52 | return str.replace(/\D/g, ''); 53 | } 54 | 55 | isNumeric(n) { 56 | return !isNaN(parseFloat(n)) && isFinite(n); 57 | } 58 | 59 | getCountryCodeOfNumber(number) { 60 | const dialCode = this.getDialCode(number); 61 | const numeric = this.getNumeric(dialCode); 62 | const countryCode = Country.getCountryCodes()[numeric]; 63 | 64 | // countryCode[0] can be null -> get first element that is not null 65 | if (countryCode) { 66 | return _.first(countryCode.filter(iso2 => iso2)); 67 | } 68 | 69 | return ''; 70 | } 71 | 72 | parse(number, iso2) { 73 | try { 74 | return phoneUtil.parse(number, iso2); 75 | } catch (err) { 76 | console.log(`Exception was thrown: ${err.toString()}`); 77 | return null; 78 | } 79 | } 80 | 81 | isValidNumber(number, iso2) { 82 | const phoneInfo = this.parse(number, iso2); 83 | 84 | if (phoneInfo) { 85 | return phoneUtil.isValidNumber(phoneInfo); 86 | } 87 | 88 | return false; 89 | } 90 | 91 | format(number, iso2) { 92 | const formatter = new asYouTypeFormatter(iso2) 93 | let formatted; 94 | 95 | number.replace(/-/g, '') 96 | .replace(/ /g, '') 97 | .split('') 98 | .forEach(n => formatted = formatter.inputDigit(n)); 99 | 100 | return formatted; 101 | } 102 | 103 | getNumberType(number, iso2) { 104 | const phoneInfo = this.parse(number, iso2); 105 | const type = phoneInfo ? phoneUtil.getNumberType(phoneInfo) : -1; 106 | return _.findKey(numberType, noType => noType === type); 107 | } 108 | 109 | getCountryDataByCode(iso2) { 110 | return Country.getCountryDataByCode(iso2); 111 | } 112 | } 113 | 114 | export default PhoneNumber.getInstance(); 115 | -------------------------------------------------------------------------------- /lib/resources/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/.DS_Store -------------------------------------------------------------------------------- /lib/resources/flags/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/.DS_Store -------------------------------------------------------------------------------- /lib/resources/flags/images/ad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ad.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ae.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ae.png -------------------------------------------------------------------------------- /lib/resources/flags/images/af.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/af.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ag.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ai.png -------------------------------------------------------------------------------- /lib/resources/flags/images/al.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/al.png -------------------------------------------------------------------------------- /lib/resources/flags/images/am.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/am.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ao.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ar.png -------------------------------------------------------------------------------- /lib/resources/flags/images/as.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/as.png -------------------------------------------------------------------------------- /lib/resources/flags/images/at.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/at.png -------------------------------------------------------------------------------- /lib/resources/flags/images/au.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/au.png -------------------------------------------------------------------------------- /lib/resources/flags/images/aw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/aw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ax.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ax.png -------------------------------------------------------------------------------- /lib/resources/flags/images/az.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/az.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ba.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ba.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bb.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bd.png -------------------------------------------------------------------------------- /lib/resources/flags/images/be.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/be.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bf.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bh.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bi.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bj.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bl.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bo.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bq.png -------------------------------------------------------------------------------- /lib/resources/flags/images/br.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/br.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bs.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bt.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/by.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/by.png -------------------------------------------------------------------------------- /lib/resources/flags/images/bz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/bz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ca.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cc.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cd.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cf.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ch.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ci.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ci.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ck.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cl.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/co.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/co.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cu.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cv.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cx.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cy.png -------------------------------------------------------------------------------- /lib/resources/flags/images/cz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/cz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/de.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/de.png -------------------------------------------------------------------------------- /lib/resources/flags/images/dj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/dj.png -------------------------------------------------------------------------------- /lib/resources/flags/images/dk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/dk.png -------------------------------------------------------------------------------- /lib/resources/flags/images/dm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/dm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/do.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/do.png -------------------------------------------------------------------------------- /lib/resources/flags/images/dz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/dz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ec.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ee.png -------------------------------------------------------------------------------- /lib/resources/flags/images/eg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/eg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/eh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/eh.png -------------------------------------------------------------------------------- /lib/resources/flags/images/er.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/er.png -------------------------------------------------------------------------------- /lib/resources/flags/images/es.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/es.png -------------------------------------------------------------------------------- /lib/resources/flags/images/et.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/et.png -------------------------------------------------------------------------------- /lib/resources/flags/images/fi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/fi.png -------------------------------------------------------------------------------- /lib/resources/flags/images/fj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/fj.png -------------------------------------------------------------------------------- /lib/resources/flags/images/fk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/fk.png -------------------------------------------------------------------------------- /lib/resources/flags/images/fm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/fm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/fo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/fo.png -------------------------------------------------------------------------------- /lib/resources/flags/images/fr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/fr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ga.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gb.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gd.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ge.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gf.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gh.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gi.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gp.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gq.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gt.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gu.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/gy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/gy.png -------------------------------------------------------------------------------- /lib/resources/flags/images/hk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/hk.png -------------------------------------------------------------------------------- /lib/resources/flags/images/hn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/hn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/hr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/hr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ht.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ht.png -------------------------------------------------------------------------------- /lib/resources/flags/images/hu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/hu.png -------------------------------------------------------------------------------- /lib/resources/flags/images/id.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/id.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ie.png -------------------------------------------------------------------------------- /lib/resources/flags/images/il.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/il.png -------------------------------------------------------------------------------- /lib/resources/flags/images/im.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/im.png -------------------------------------------------------------------------------- /lib/resources/flags/images/in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/in.png -------------------------------------------------------------------------------- /lib/resources/flags/images/io.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/io.png -------------------------------------------------------------------------------- /lib/resources/flags/images/iq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/iq.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ir.png -------------------------------------------------------------------------------- /lib/resources/flags/images/is.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/is.png -------------------------------------------------------------------------------- /lib/resources/flags/images/it.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/it.png -------------------------------------------------------------------------------- /lib/resources/flags/images/je.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/je.png -------------------------------------------------------------------------------- /lib/resources/flags/images/jm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/jm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/jo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/jo.png -------------------------------------------------------------------------------- /lib/resources/flags/images/jp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/jp.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ke.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ke.png -------------------------------------------------------------------------------- /lib/resources/flags/images/kg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/kg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/kh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/kh.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ki.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ki.png -------------------------------------------------------------------------------- /lib/resources/flags/images/km.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/km.png -------------------------------------------------------------------------------- /lib/resources/flags/images/kn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/kn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/kp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/kp.png -------------------------------------------------------------------------------- /lib/resources/flags/images/kr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/kr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ks.png -------------------------------------------------------------------------------- /lib/resources/flags/images/kw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/kw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ky.png -------------------------------------------------------------------------------- /lib/resources/flags/images/kz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/kz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/la.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/la.png -------------------------------------------------------------------------------- /lib/resources/flags/images/lb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/lb.png -------------------------------------------------------------------------------- /lib/resources/flags/images/lc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/lc.png -------------------------------------------------------------------------------- /lib/resources/flags/images/li.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/li.png -------------------------------------------------------------------------------- /lib/resources/flags/images/lk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/lk.png -------------------------------------------------------------------------------- /lib/resources/flags/images/lr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/lr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ls.png -------------------------------------------------------------------------------- /lib/resources/flags/images/lt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/lt.png -------------------------------------------------------------------------------- /lib/resources/flags/images/lu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/lu.png -------------------------------------------------------------------------------- /lib/resources/flags/images/lv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/lv.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ly.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ma.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mc.png -------------------------------------------------------------------------------- /lib/resources/flags/images/md.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/md.png -------------------------------------------------------------------------------- /lib/resources/flags/images/me.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/me.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mf.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mh.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mk.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ml.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mo.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mp.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mq.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ms.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mt.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mu.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mv.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mx.png -------------------------------------------------------------------------------- /lib/resources/flags/images/my.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/my.png -------------------------------------------------------------------------------- /lib/resources/flags/images/mz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/mz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/na.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/na.png -------------------------------------------------------------------------------- /lib/resources/flags/images/nc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/nc.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ne.png -------------------------------------------------------------------------------- /lib/resources/flags/images/nf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/nf.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ng.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ni.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ni.png -------------------------------------------------------------------------------- /lib/resources/flags/images/nl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/nl.png -------------------------------------------------------------------------------- /lib/resources/flags/images/no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/no.png -------------------------------------------------------------------------------- /lib/resources/flags/images/np.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/np.png -------------------------------------------------------------------------------- /lib/resources/flags/images/nr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/nr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/nu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/nu.png -------------------------------------------------------------------------------- /lib/resources/flags/images/nz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/nz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/om.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/om.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pa.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pe.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pf.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ph.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pk.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pl.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ps.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pt.png -------------------------------------------------------------------------------- /lib/resources/flags/images/pw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/pw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/py.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/py.png -------------------------------------------------------------------------------- /lib/resources/flags/images/qa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/qa.png -------------------------------------------------------------------------------- /lib/resources/flags/images/re.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/re.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ro.png -------------------------------------------------------------------------------- /lib/resources/flags/images/rs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/rs.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ru.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ru.png -------------------------------------------------------------------------------- /lib/resources/flags/images/rw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/rw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sa.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sb.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sc.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sd.png -------------------------------------------------------------------------------- /lib/resources/flags/images/se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/se.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sh.png -------------------------------------------------------------------------------- /lib/resources/flags/images/si.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/si.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sj.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sk.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sl.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/so.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/so.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ss.png -------------------------------------------------------------------------------- /lib/resources/flags/images/st.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/st.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sv.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sx.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sy.png -------------------------------------------------------------------------------- /lib/resources/flags/images/sz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/sz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tc.png -------------------------------------------------------------------------------- /lib/resources/flags/images/td.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/td.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/th.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/th.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tj.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tk.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tl.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/to.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/to.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tr.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tt.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tv.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tw.png -------------------------------------------------------------------------------- /lib/resources/flags/images/tz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/tz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ua.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ug.png -------------------------------------------------------------------------------- /lib/resources/flags/images/us.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/us.png -------------------------------------------------------------------------------- /lib/resources/flags/images/uy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/uy.png -------------------------------------------------------------------------------- /lib/resources/flags/images/uz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/uz.png -------------------------------------------------------------------------------- /lib/resources/flags/images/va.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/va.png -------------------------------------------------------------------------------- /lib/resources/flags/images/vc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/vc.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ve.png -------------------------------------------------------------------------------- /lib/resources/flags/images/vg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/vg.png -------------------------------------------------------------------------------- /lib/resources/flags/images/vi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/vi.png -------------------------------------------------------------------------------- /lib/resources/flags/images/vn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/vn.png -------------------------------------------------------------------------------- /lib/resources/flags/images/vu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/vu.png -------------------------------------------------------------------------------- /lib/resources/flags/images/wf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/wf.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ws.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ws.png -------------------------------------------------------------------------------- /lib/resources/flags/images/ye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/ye.png -------------------------------------------------------------------------------- /lib/resources/flags/images/yt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/yt.png -------------------------------------------------------------------------------- /lib/resources/flags/images/za.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/za.png -------------------------------------------------------------------------------- /lib/resources/flags/images/zm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/zm.png -------------------------------------------------------------------------------- /lib/resources/flags/images/zw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thegamenicorus/react-native-phone-input/43d935639a7806b25a9fef15be6c9f6fcd8c88b4/lib/resources/flags/images/zw.png -------------------------------------------------------------------------------- /lib/resources/numberType.json: -------------------------------------------------------------------------------- 1 | { 2 | "FIXED_LINE": 0, 3 | "MOBILE": 1, 4 | "FIXED_LINE_OR_MOBILE": 2, 5 | "TOLL_FREE": 3, 6 | "PREMIUM_RATE": 4, 7 | "SHARED_COST": 5, 8 | "VOIP": 6, 9 | "PERSONAL_NUMBER": 7, 10 | "PAGER": 8, 11 | "UAN": 9, 12 | "VOICEMAIL": 10, 13 | "UNKNOWN": -1 14 | } 15 | -------------------------------------------------------------------------------- /lib/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet, Dimensions } from 'react-native'; 2 | 3 | const { width } = Dimensions.get('window'); 4 | 5 | const SCREEN_WIDTH = width; 6 | 7 | export default StyleSheet.create({ 8 | container: { 9 | flexDirection: 'row', 10 | alignItems: 'center', 11 | justifyContent: 'center', 12 | // borderWidth:1, 13 | }, 14 | basicContainer: { 15 | flex: 1, 16 | justifyContent: 'flex-end', 17 | alignItems: 'center', 18 | }, 19 | modalContainer: { 20 | width: SCREEN_WIDTH, 21 | justifyContent: 'center', 22 | alignItems: 'center', 23 | padding: 0, 24 | }, 25 | buttonView: { 26 | width: SCREEN_WIDTH, 27 | padding: 8, 28 | borderTopWidth: 0.5, 29 | borderTopColor: 'lightgrey', 30 | justifyContent: 'space-between', 31 | flexDirection: 'row', 32 | }, 33 | bottomPicker: { 34 | width: SCREEN_WIDTH, 35 | }, 36 | flag: { 37 | height: 20, 38 | width: 30, 39 | borderRadius: 2, 40 | borderWidth: 0.5, 41 | borderColor: '#cecece', 42 | backgroundColor: '#cecece', 43 | }, 44 | text: { 45 | height: 20, 46 | padding: 0, 47 | justifyContent: 'center', 48 | }, 49 | }); 50 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-phone-input", 3 | "version": "0.2.4", 4 | "description": "Phone input box for React Native", 5 | "main": "lib/index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git@github.com:thegamenicorus/react-native-phone-input.git" 12 | }, 13 | "keywords": [ 14 | "react-native", 15 | "phone", 16 | "telephone", 17 | "phone input", 18 | "input", 19 | "tel", 20 | "input text", 21 | "international", 22 | "react-native-component", 23 | "ios", 24 | "android" 25 | ], 26 | "dependencies": { 27 | "google-libphonenumber": "^3.2.2", 28 | "lodash": "^4.17.4", 29 | "prop-types": "^15.5.10" 30 | }, 31 | "peerDependencies": { 32 | "react-native": ">= 0.25" 33 | }, 34 | "author": "Watcharachai Kanjaikaew (https://github.com/thegamenicorus)", 35 | "license": "MIT", 36 | "bugs": { 37 | "url": "https://github.com/thegamenicorus/react-native-phone-input/issues" 38 | }, 39 | "homepage": "https://github.com/thegamenicorus/react-native-phone-input" 40 | } 41 | --------------------------------------------------------------------------------