This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The type for the event is NativeSyntheticEvent<TextInputChangeEventData> | |
// example 1 | |
import { TextInput, NativeSyntheticEvent, TextInputChangeEventData } from "react-native"; | |
const onChange = (e: NativeSyntheticEvent<TextInputChangeEventData>): void => { | |
const value = e.nativeEvent.text; | |
doStuff(value); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/android/build.gradle b/android/build.gradle | |
index 525cb31..6af104d 100644 | |
--- a/android/build.gradle | |
+++ b/android/build.gradle | |
@@ -36,7 +36,30 @@ def getExtOrIntegerDefault(name) { | |
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["MyLib_" + name]).toInteger() | |
} | |
+def supportsNamespace() { | |
+ def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.') |
OlderNewer