docs: add android-jsc-intl example

This commit is contained in:
Fernando Rojo authored and GitHub committed 2021-07-07 23:32:09 +00:00
1 parent eb6642c0e7
commit d96c0b2888
5 files changed
+44 -1

No files matched your search

+2 -1
View File
@@ -2,4 +2,5 @@ export { default } from './src/react-native-dynamic-app-icon/App';
// export { default } from './src/react-native-google-cast/App';
// export { default } from './src/detox/App';
// export { default } from './src/react-native-ble-plx/App';
// export { default } from './src/react-native-webrtc/App';
// export { default } from './src/react-native-webrtc/App';
// export { default } from './src/android-jsc-intl/App';
+1
View File
@@ -44,6 +44,7 @@
"@config-plugins/react-native-ble-plx",
"@config-plugins/react-native-webrtc",
"@config-plugins/react-native-callkeep",
"@config-plugins/android-jsc-intl",
[
"@config-plugins/ios-stickers",
{
+3
View File
@@ -50,6 +50,7 @@
}
},
"dependencies": {
"@config-plugins/android-jsc-intl": "^0.0.0",
"@config-plugins/detox": "^0.0.0",
"@config-plugins/ios-stickers": "^0.0.2",
"@config-plugins/react-native-ble-plx": "^0.0.0",
@@ -63,6 +64,7 @@
"expo-status-bar": "~1.0.4",
"expo-updates": "~0.5.4",
"i18n-js": "^3.8.0",
"luxon": "^1.27.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "~0.63.4",
@@ -81,6 +83,7 @@
"@babel/core": "~7.9.0",
"@expo/xcpretty": "^3.1.4",
"@types/jest": "^26.0.19",
"@types/luxon": "^1.27.1",
"@types/react": "~16.9.35",
"@types/react-native": "~0.63.2",
"babel-jest": "~25.2.6",
+28
View File
@@ -0,0 +1,28 @@
import React from "react";
import { Text, View } from "react-native";
import { DateTime } from "luxon";
const currentDate = DateTime.fromObject({
locale: "en-US",
zone: "America/New_York",
});
export default function App() {
return (
<View
style={{
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "blue",
}}
>
<Text style={{ fontSize: 18, color: "white", textAlign: "center" }}>
Intl support for Android, without Hermes 🤖
</Text>
<Text style={{ fontSize: 18, color: "white", textAlign: "center" }}>
{currentDate.toISO()}
</Text>
</View>
);
}
+10
View File
@@ -3461,6 +3461,11 @@
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=
"@types/luxon@^1.27.1":
version "1.27.1"
resolved "https://registry.yarnpkg.com/@types/luxon/-/luxon-1.27.1.tgz#aceeb2d5be8fccf541237e184e37ecff5faa9096"
integrity sha512-cPiXpOvPFDr2edMnOXlz3UBDApwUfR+cpizvxCy0n3vp9bz/qe8BWzHPIEFcy+ogUOyjKuCISgyq77ELZPmkkg==
"@types/mdast@^3.0.0":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.3.tgz#2d7d671b1cd1ea3deb306ea75036c2a0407d2deb"
@@ -11229,6 +11234,11 @@ lru-cache@^6.0.0:
dependencies:
yallist "^4.0.0"
luxon@^1.27.0:
version "1.27.0"
resolved "https://registry.yarnpkg.com/luxon/-/luxon-1.27.0.tgz#ae10c69113d85dab8f15f5e8390d0cbeddf4f00f"
integrity sha512-VKsFsPggTA0DvnxtJdiExAucKdAnwbCCNlMM5ENvHlxubqWd0xhZcdb4XgZ7QFNhaRhilXCFxHuoObP5BNA4PA==
macos-release@^2.2.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.5.0.tgz#067c2c88b5f3fb3c56a375b2ec93826220fa1ff2"