react-native-acoustic-connect-beta 18.0.7 → 18.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/Examples/SampleUI/.bundle/config +2 -0
  2. package/Examples/SampleUI/.eslintrc.js +4 -0
  3. package/Examples/SampleUI/.prettierrc.js +7 -0
  4. package/Examples/SampleUI/.watchmanconfig +1 -0
  5. package/Examples/SampleUI/App.js +1 -0
  6. package/Examples/SampleUI/Gemfile +10 -0
  7. package/Examples/SampleUI/Gemfile.lock +121 -0
  8. package/Examples/SampleUI/README.md +79 -0
  9. package/Examples/SampleUI/__tests__/App.test.tsx +17 -0
  10. package/Examples/SampleUI/android/app/build.gradle +124 -0
  11. package/Examples/SampleUI/android/app/debug.keystore +0 -0
  12. package/Examples/SampleUI/android/app/proguard-rules.pro +10 -0
  13. package/Examples/SampleUI/android/app/src/debug/AndroidManifest.xml +9 -0
  14. package/Examples/SampleUI/android/app/src/main/AndroidManifest.xml +26 -0
  15. package/Examples/SampleUI/android/app/src/main/java/com/sampleui/MainActivity.kt +23 -0
  16. package/Examples/SampleUI/android/app/src/main/java/com/sampleui/MainApplication.kt +53 -0
  17. package/Examples/SampleUI/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  18. package/Examples/SampleUI/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  19. package/Examples/SampleUI/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  20. package/Examples/SampleUI/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  21. package/Examples/SampleUI/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  22. package/Examples/SampleUI/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  23. package/Examples/SampleUI/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  24. package/Examples/SampleUI/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  25. package/Examples/SampleUI/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  26. package/Examples/SampleUI/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  27. package/Examples/SampleUI/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  28. package/Examples/SampleUI/android/app/src/main/res/values/strings.xml +3 -0
  29. package/Examples/SampleUI/android/app/src/main/res/values/styles.xml +9 -0
  30. package/Examples/SampleUI/android/build.gradle +21 -0
  31. package/Examples/SampleUI/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  32. package/Examples/SampleUI/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  33. package/Examples/SampleUI/android/gradle.properties +39 -0
  34. package/Examples/SampleUI/android/gradlew +252 -0
  35. package/Examples/SampleUI/android/gradlew.bat +94 -0
  36. package/Examples/SampleUI/android/settings.gradle +21 -0
  37. package/Examples/SampleUI/app.json +51 -0
  38. package/Examples/SampleUI/assets/fonts/Abel-Regular.ttf +0 -0
  39. package/Examples/SampleUI/assets/fonts/NotoSans-Regular.ttf +0 -0
  40. package/Examples/SampleUI/assets/images/android-icon.png +0 -0
  41. package/Examples/SampleUI/assets/images/artist-1.jpg +0 -0
  42. package/Examples/SampleUI/assets/images/artist-2.jpg +0 -0
  43. package/Examples/SampleUI/assets/images/avatar.png +0 -0
  44. package/Examples/SampleUI/assets/images/beach.jpg +0 -0
  45. package/Examples/SampleUI/assets/images/bridge.jpg +0 -0
  46. package/Examples/SampleUI/assets/images/chameleon.jpg +0 -0
  47. package/Examples/SampleUI/assets/images/city.jpg +0 -0
  48. package/Examples/SampleUI/assets/images/email-icon.png +0 -0
  49. package/Examples/SampleUI/assets/images/favorite.png +0 -0
  50. package/Examples/SampleUI/assets/images/forest.jpg +0 -0
  51. package/Examples/SampleUI/assets/images/paper-icon.png +0 -0
  52. package/Examples/SampleUI/assets/images/players-2.jpg +0 -0
  53. package/Examples/SampleUI/assets/images/players.jpg +0 -0
  54. package/Examples/SampleUI/assets/images/restaurant-1.jpg +0 -0
  55. package/Examples/SampleUI/assets/images/restaurant-2.jpg +0 -0
  56. package/Examples/SampleUI/assets/images/song-1.jpg +0 -0
  57. package/Examples/SampleUI/assets/images/song-2.jpg +0 -0
  58. package/Examples/SampleUI/assets/images/splash.png +0 -0
  59. package/Examples/SampleUI/assets/images/strawberries.jpg +0 -0
  60. package/Examples/SampleUI/assets/images/wrecked-ship.jpg +0 -0
  61. package/Examples/SampleUI/assets/styles/fonts.css +47 -0
  62. package/Examples/SampleUI/babel.config.js +22 -0
  63. package/Examples/SampleUI/index.js +9 -0
  64. package/Examples/SampleUI/ios/.xcode.env +11 -0
  65. package/Examples/SampleUI/ios/Podfile +58 -0
  66. package/Examples/SampleUI/ios/SampleUI/AppDelegate.h +7 -0
  67. package/Examples/SampleUI/ios/SampleUI/AppDelegate.mm +31 -0
  68. package/Examples/SampleUI/ios/SampleUI/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  69. package/Examples/SampleUI/ios/SampleUI/Images.xcassets/Contents.json +6 -0
  70. package/Examples/SampleUI/ios/SampleUI/Info.plist +52 -0
  71. package/Examples/SampleUI/ios/SampleUI/LaunchScreen.storyboard +47 -0
  72. package/Examples/SampleUI/ios/SampleUI/PrivacyInfo.xcprivacy +48 -0
  73. package/Examples/SampleUI/ios/SampleUI/main.m +10 -0
  74. package/Examples/SampleUI/ios/SampleUI.xcodeproj/project.pbxproj +785 -0
  75. package/Examples/SampleUI/ios/SampleUI.xcodeproj/xcshareddata/xcschemes/SampleUI.xcscheme +88 -0
  76. package/Examples/SampleUI/ios/SampleUI.xcworkspace/contents.xcworkspacedata +10 -0
  77. package/Examples/SampleUI/ios/SampleUITests/Info.plist +24 -0
  78. package/Examples/SampleUI/ios/SampleUITests/SampleUITests.m +66 -0
  79. package/Examples/SampleUI/jest.config.js +3 -0
  80. package/Examples/SampleUI/metro.config.js +53 -0
  81. package/Examples/SampleUI/package-lock.json +17033 -0
  82. package/Examples/SampleUI/package.json +62 -0
  83. package/Examples/SampleUI/src/DrawerItems.tsx +322 -0
  84. package/Examples/SampleUI/src/ExampleList.tsx +175 -0
  85. package/Examples/SampleUI/src/Examples/ActivityIndicatorExample.tsx +73 -0
  86. package/Examples/SampleUI/src/Examples/AnimatedFABExample/AnimatedFABExample.tsx +220 -0
  87. package/Examples/SampleUI/src/Examples/AnimatedFABExample/CustomFAB.tsx +70 -0
  88. package/Examples/SampleUI/src/Examples/AnimatedFABExample/CustomFABControls.tsx +146 -0
  89. package/Examples/SampleUI/src/Examples/AnimatedFABExample/index.ts +1 -0
  90. package/Examples/SampleUI/src/Examples/AppbarExample.tsx +263 -0
  91. package/Examples/SampleUI/src/Examples/AvatarExample.tsx +76 -0
  92. package/Examples/SampleUI/src/Examples/BadgeExample.tsx +97 -0
  93. package/Examples/SampleUI/src/Examples/BannerExample.tsx +152 -0
  94. package/Examples/SampleUI/src/Examples/BottomNavigationBarExample.tsx +94 -0
  95. package/Examples/SampleUI/src/Examples/BottomNavigationExample.tsx +205 -0
  96. package/Examples/SampleUI/src/Examples/ButtonExample.tsx +405 -0
  97. package/Examples/SampleUI/src/Examples/CardExample.tsx +245 -0
  98. package/Examples/SampleUI/src/Examples/CheckboxExample.tsx +87 -0
  99. package/Examples/SampleUI/src/Examples/CheckboxItemExample.tsx +72 -0
  100. package/Examples/SampleUI/src/Examples/ChipExample.tsx +432 -0
  101. package/Examples/SampleUI/src/Examples/DataTableExample.tsx +128 -0
  102. package/Examples/SampleUI/src/Examples/DialogExample.tsx +131 -0
  103. package/Examples/SampleUI/src/Examples/Dialogs/DialogTextComponent.tsx +31 -0
  104. package/Examples/SampleUI/src/Examples/Dialogs/DialogWithCustomColors.tsx +57 -0
  105. package/Examples/SampleUI/src/Examples/Dialogs/DialogWithDismissableBackButton.tsx +38 -0
  106. package/Examples/SampleUI/src/Examples/Dialogs/DialogWithIcon.tsx +42 -0
  107. package/Examples/SampleUI/src/Examples/Dialogs/DialogWithLoadingIndicator.tsx +48 -0
  108. package/Examples/SampleUI/src/Examples/Dialogs/DialogWithLongText.tsx +81 -0
  109. package/Examples/SampleUI/src/Examples/Dialogs/DialogWithRadioBtns.tsx +111 -0
  110. package/Examples/SampleUI/src/Examples/Dialogs/UndismissableDialog.tsx +30 -0
  111. package/Examples/SampleUI/src/Examples/Dialogs/index.tsx +7 -0
  112. package/Examples/SampleUI/src/Examples/DividerExample.tsx +30 -0
  113. package/Examples/SampleUI/src/Examples/FABExample.tsx +226 -0
  114. package/Examples/SampleUI/src/Examples/IconButtonExample.tsx +230 -0
  115. package/Examples/SampleUI/src/Examples/IconExample.tsx +50 -0
  116. package/Examples/SampleUI/src/Examples/ListAccordionExample.tsx +65 -0
  117. package/Examples/SampleUI/src/Examples/ListAccordionGroupExample.tsx +80 -0
  118. package/Examples/SampleUI/src/Examples/ListItemExample.tsx +310 -0
  119. package/Examples/SampleUI/src/Examples/ListSectionExample.tsx +159 -0
  120. package/Examples/SampleUI/src/Examples/MaterialBottomTabNavigatorExample.tsx +87 -0
  121. package/Examples/SampleUI/src/Examples/MenuExample.tsx +211 -0
  122. package/Examples/SampleUI/src/Examples/ProgressBarExample.tsx +142 -0
  123. package/Examples/SampleUI/src/Examples/RadioButtonExample.tsx +104 -0
  124. package/Examples/SampleUI/src/Examples/RadioButtonGroupExample.tsx +67 -0
  125. package/Examples/SampleUI/src/Examples/RadioButtonItemExample.tsx +77 -0
  126. package/Examples/SampleUI/src/Examples/SearchbarExample.tsx +249 -0
  127. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonCustomColorCheck.tsx +93 -0
  128. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonDefault.tsx +49 -0
  129. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonDisabled.tsx +47 -0
  130. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonMultiselect.tsx +50 -0
  131. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonMultiselectIcons.tsx +49 -0
  132. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonMultiselectRealCase.tsx +114 -0
  133. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonOnlyIcons.tsx +40 -0
  134. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonOnlyIconsWithCheck.tsx +43 -0
  135. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonRealCase.tsx +97 -0
  136. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonWithDensity.tsx +47 -0
  137. package/Examples/SampleUI/src/Examples/SegmentedButtons/SegmentedButtonWithSelectedCheck.tsx +52 -0
  138. package/Examples/SampleUI/src/Examples/SegmentedButtons/index.ts +9 -0
  139. package/Examples/SampleUI/src/Examples/SegmentedButtonsExample.tsx +57 -0
  140. package/Examples/SampleUI/src/Examples/SnackbarExample.tsx +141 -0
  141. package/Examples/SampleUI/src/Examples/SurfaceExample.tsx +130 -0
  142. package/Examples/SampleUI/src/Examples/SwitchExample.tsx +105 -0
  143. package/Examples/SampleUI/src/Examples/TeamDetails.tsx +291 -0
  144. package/Examples/SampleUI/src/Examples/TeamsList.tsx +57 -0
  145. package/Examples/SampleUI/src/Examples/TextExample.tsx +132 -0
  146. package/Examples/SampleUI/src/Examples/TextInputExample.tsx +914 -0
  147. package/Examples/SampleUI/src/Examples/ThemeExample.tsx +41 -0
  148. package/Examples/SampleUI/src/Examples/ThemingWithReactNavigation.tsx +75 -0
  149. package/Examples/SampleUI/src/Examples/ToggleButtonExample.tsx +128 -0
  150. package/Examples/SampleUI/src/Examples/TooltipExample.tsx +191 -0
  151. package/Examples/SampleUI/src/Examples/TouchableRippleExample.tsx +37 -0
  152. package/Examples/SampleUI/src/RootNavigator.tsx +86 -0
  153. package/Examples/SampleUI/src/ScreenWrapper.tsx +67 -0
  154. package/Examples/SampleUI/src/components/ActivityIndicator.tsx +254 -0
  155. package/Examples/SampleUI/src/components/Appbar/Appbar.tsx +364 -0
  156. package/Examples/SampleUI/src/components/Appbar/AppbarAction.tsx +132 -0
  157. package/Examples/SampleUI/src/components/Appbar/AppbarBackAction.tsx +77 -0
  158. package/Examples/SampleUI/src/components/Appbar/AppbarBackIcon.tsx +52 -0
  159. package/Examples/SampleUI/src/components/Appbar/AppbarContent.tsx +249 -0
  160. package/Examples/SampleUI/src/components/Appbar/AppbarHeader.tsx +174 -0
  161. package/Examples/SampleUI/src/components/Appbar/index.ts +22 -0
  162. package/Examples/SampleUI/src/components/Appbar/utils.ts +188 -0
  163. package/Examples/SampleUI/src/components/Avatar/Avatar.tsx +8 -0
  164. package/Examples/SampleUI/src/components/Avatar/AvatarIcon.tsx +87 -0
  165. package/Examples/SampleUI/src/components/Avatar/AvatarImage.tsx +128 -0
  166. package/Examples/SampleUI/src/components/Avatar/AvatarText.tsx +127 -0
  167. package/Examples/SampleUI/src/components/Badge.tsx +138 -0
  168. package/Examples/SampleUI/src/components/Banner.tsx +302 -0
  169. package/Examples/SampleUI/src/components/BottomNavigation/BottomNavigation.tsx +643 -0
  170. package/Examples/SampleUI/src/components/BottomNavigation/BottomNavigationBar.tsx +1039 -0
  171. package/Examples/SampleUI/src/components/BottomNavigation/BottomNavigationRouteScreen.tsx +31 -0
  172. package/Examples/SampleUI/src/components/BottomNavigation/utils.ts +70 -0
  173. package/Examples/SampleUI/src/components/Button/Button.tsx +503 -0
  174. package/Examples/SampleUI/src/components/Button/utils.tsx +272 -0
  175. package/Examples/SampleUI/src/components/Card/Card.tsx +373 -0
  176. package/Examples/SampleUI/src/components/Card/CardActions.tsx +74 -0
  177. package/Examples/SampleUI/src/components/Card/CardContent.tsx +99 -0
  178. package/Examples/SampleUI/src/components/Card/CardCover.tsx +96 -0
  179. package/Examples/SampleUI/src/components/Card/CardTitle.tsx +236 -0
  180. package/Examples/SampleUI/src/components/Card/utils.tsx +110 -0
  181. package/Examples/SampleUI/src/components/Checkbox/Checkbox.tsx +78 -0
  182. package/Examples/SampleUI/src/components/Checkbox/CheckboxAndroid.tsx +180 -0
  183. package/Examples/SampleUI/src/components/Checkbox/CheckboxIOS.tsx +104 -0
  184. package/Examples/SampleUI/src/components/Checkbox/CheckboxItem.tsx +236 -0
  185. package/Examples/SampleUI/src/components/Checkbox/index.ts +19 -0
  186. package/Examples/SampleUI/src/components/Checkbox/utils.ts +183 -0
  187. package/Examples/SampleUI/src/components/Chip/Chip.tsx +513 -0
  188. package/Examples/SampleUI/src/components/Chip/helpers.tsx +322 -0
  189. package/Examples/SampleUI/src/components/CrossFadeIcon.tsx +140 -0
  190. package/Examples/SampleUI/src/components/DataTable/DataTable.tsx +138 -0
  191. package/Examples/SampleUI/src/components/DataTable/DataTableCell.tsx +132 -0
  192. package/Examples/SampleUI/src/components/DataTable/DataTableHeader.tsx +82 -0
  193. package/Examples/SampleUI/src/components/DataTable/DataTablePagination.tsx +407 -0
  194. package/Examples/SampleUI/src/components/DataTable/DataTableRow.tsx +107 -0
  195. package/Examples/SampleUI/src/components/DataTable/DataTableTitle.tsx +208 -0
  196. package/Examples/SampleUI/src/components/Dialog/Dialog.tsx +191 -0
  197. package/Examples/SampleUI/src/components/Dialog/DialogActions.tsx +94 -0
  198. package/Examples/SampleUI/src/components/Dialog/DialogContent.tsx +54 -0
  199. package/Examples/SampleUI/src/components/Dialog/DialogIcon.tsx +100 -0
  200. package/Examples/SampleUI/src/components/Dialog/DialogScrollArea.tsx +88 -0
  201. package/Examples/SampleUI/src/components/Dialog/DialogTitle.tsx +94 -0
  202. package/Examples/SampleUI/src/components/Divider.tsx +102 -0
  203. package/Examples/SampleUI/src/components/Drawer/Drawer.tsx +8 -0
  204. package/Examples/SampleUI/src/components/Drawer/DrawerCollapsedItem.tsx +282 -0
  205. package/Examples/SampleUI/src/components/Drawer/DrawerItem.tsx +209 -0
  206. package/Examples/SampleUI/src/components/Drawer/DrawerSection.tsx +138 -0
  207. package/Examples/SampleUI/src/components/FAB/AnimatedFAB.tsx +619 -0
  208. package/Examples/SampleUI/src/components/FAB/FAB.tsx +371 -0
  209. package/Examples/SampleUI/src/components/FAB/FABGroup.tsx +532 -0
  210. package/Examples/SampleUI/src/components/FAB/index.ts +13 -0
  211. package/Examples/SampleUI/src/components/FAB/utils.ts +474 -0
  212. package/Examples/SampleUI/src/components/HelperText/HelperText.tsx +168 -0
  213. package/Examples/SampleUI/src/components/HelperText/utils.ts +30 -0
  214. package/Examples/SampleUI/src/components/Icon.tsx +170 -0
  215. package/Examples/SampleUI/src/components/IconButton/IconButton.tsx +234 -0
  216. package/Examples/SampleUI/src/components/IconButton/utils.ts +190 -0
  217. package/Examples/SampleUI/src/components/List/List.tsx +20 -0
  218. package/Examples/SampleUI/src/components/List/ListAccordion.tsx +391 -0
  219. package/Examples/SampleUI/src/components/List/ListAccordionGroup.tsx +88 -0
  220. package/Examples/SampleUI/src/components/List/ListIcon.tsx +79 -0
  221. package/Examples/SampleUI/src/components/List/ListImage.tsx +89 -0
  222. package/Examples/SampleUI/src/components/List/ListItem.tsx +313 -0
  223. package/Examples/SampleUI/src/components/List/ListSection.tsx +87 -0
  224. package/Examples/SampleUI/src/components/List/ListSubheader.tsx +79 -0
  225. package/Examples/SampleUI/src/components/List/utils.ts +113 -0
  226. package/Examples/SampleUI/src/components/MaterialCommunityIcon.tsx +121 -0
  227. package/Examples/SampleUI/src/components/Menu/Menu.tsx +711 -0
  228. package/Examples/SampleUI/src/components/Menu/MenuItem.tsx +257 -0
  229. package/Examples/SampleUI/src/components/Menu/utils.ts +110 -0
  230. package/Examples/SampleUI/src/components/Modal.tsx +245 -0
  231. package/Examples/SampleUI/src/components/Portal/Portal.tsx +69 -0
  232. package/Examples/SampleUI/src/components/Portal/PortalConsumer.tsx +44 -0
  233. package/Examples/SampleUI/src/components/Portal/PortalHost.tsx +143 -0
  234. package/Examples/SampleUI/src/components/Portal/PortalManager.tsx +54 -0
  235. package/Examples/SampleUI/src/components/ProgressBar.tsx +292 -0
  236. package/Examples/SampleUI/src/components/RadioButton/RadioButton.tsx +86 -0
  237. package/Examples/SampleUI/src/components/RadioButton/RadioButtonAndroid.tsx +202 -0
  238. package/Examples/SampleUI/src/components/RadioButton/RadioButtonGroup.tsx +67 -0
  239. package/Examples/SampleUI/src/components/RadioButton/RadioButtonIOS.tsx +130 -0
  240. package/Examples/SampleUI/src/components/RadioButton/RadioButtonItem.tsx +268 -0
  241. package/Examples/SampleUI/src/components/RadioButton/index.ts +22 -0
  242. package/Examples/SampleUI/src/components/RadioButton/utils.ts +37 -0
  243. package/Examples/SampleUI/src/components/Searchbar.tsx +459 -0
  244. package/Examples/SampleUI/src/components/SegmentedButtons/SegmentedButtonItem.tsx +271 -0
  245. package/Examples/SampleUI/src/components/SegmentedButtons/SegmentedButtons.tsx +197 -0
  246. package/Examples/SampleUI/src/components/SegmentedButtons/utils.ts +179 -0
  247. package/Examples/SampleUI/src/components/Snackbar.tsx +430 -0
  248. package/Examples/SampleUI/src/components/Surface.tsx +376 -0
  249. package/Examples/SampleUI/src/components/Switch/Switch.tsx +108 -0
  250. package/Examples/SampleUI/src/components/Switch/utils.ts +113 -0
  251. package/Examples/SampleUI/src/components/TextInput/Addons/Outline.tsx +64 -0
  252. package/Examples/SampleUI/src/components/TextInput/Addons/Underline.tsx +78 -0
  253. package/Examples/SampleUI/src/components/TextInput/Adornment/TextInputAdornment.tsx +208 -0
  254. package/Examples/SampleUI/src/components/TextInput/Adornment/TextInputAffix.tsx +212 -0
  255. package/Examples/SampleUI/src/components/TextInput/Adornment/TextInputIcon.tsx +195 -0
  256. package/Examples/SampleUI/src/components/TextInput/Adornment/enums.tsx +12 -0
  257. package/Examples/SampleUI/src/components/TextInput/Adornment/types.tsx +11 -0
  258. package/Examples/SampleUI/src/components/TextInput/Adornment/utils.ts +48 -0
  259. package/Examples/SampleUI/src/components/TextInput/Label/InputLabel.tsx +217 -0
  260. package/Examples/SampleUI/src/components/TextInput/Label/LabelBackground.tsx +100 -0
  261. package/Examples/SampleUI/src/components/TextInput/TextInput.tsx +572 -0
  262. package/Examples/SampleUI/src/components/TextInput/TextInputFlat.tsx +475 -0
  263. package/Examples/SampleUI/src/components/TextInput/TextInputOutlined.tsx +450 -0
  264. package/Examples/SampleUI/src/components/TextInput/constants.tsx +48 -0
  265. package/Examples/SampleUI/src/components/TextInput/helpers.tsx +612 -0
  266. package/Examples/SampleUI/src/components/TextInput/types.tsx +155 -0
  267. package/Examples/SampleUI/src/components/ToggleButton/ToggleButton.tsx +187 -0
  268. package/Examples/SampleUI/src/components/ToggleButton/ToggleButtonGroup.tsx +72 -0
  269. package/Examples/SampleUI/src/components/ToggleButton/ToggleButtonRow.tsx +107 -0
  270. package/Examples/SampleUI/src/components/ToggleButton/index.ts +16 -0
  271. package/Examples/SampleUI/src/components/ToggleButton/utils.ts +26 -0
  272. package/Examples/SampleUI/src/components/Tooltip/Tooltip.tsx +249 -0
  273. package/Examples/SampleUI/src/components/Tooltip/utils.ts +129 -0
  274. package/Examples/SampleUI/src/components/TouchableRipple/Pressable.tsx +41 -0
  275. package/Examples/SampleUI/src/components/TouchableRipple/TouchableRipple.native.tsx +145 -0
  276. package/Examples/SampleUI/src/components/TouchableRipple/TouchableRipple.tsx +317 -0
  277. package/Examples/SampleUI/src/components/TouchableRipple/utils.ts +66 -0
  278. package/Examples/SampleUI/src/components/Typography/AnimatedText.tsx +107 -0
  279. package/Examples/SampleUI/src/components/Typography/Text.tsx +184 -0
  280. package/Examples/SampleUI/src/components/Typography/types.tsx +5 -0
  281. package/Examples/SampleUI/src/components/Typography/v2/Caption.tsx +50 -0
  282. package/Examples/SampleUI/src/components/Typography/v2/Headline.tsx +52 -0
  283. package/Examples/SampleUI/src/components/Typography/v2/Paragraph.tsx +49 -0
  284. package/Examples/SampleUI/src/components/Typography/v2/StyledText.tsx +56 -0
  285. package/Examples/SampleUI/src/components/Typography/v2/Subheading.tsx +50 -0
  286. package/Examples/SampleUI/src/components/Typography/v2/Text.tsx +62 -0
  287. package/Examples/SampleUI/src/components/Typography/v2/Title.tsx +49 -0
  288. package/Examples/SampleUI/src/components/Typography/v2/index.ts +5 -0
  289. package/Examples/SampleUI/src/core/PaperProvider.tsx +122 -0
  290. package/Examples/SampleUI/src/core/SafeAreaProviderCompat.tsx +65 -0
  291. package/Examples/SampleUI/src/core/settings.tsx +23 -0
  292. package/Examples/SampleUI/src/core/theming.tsx +170 -0
  293. package/Examples/SampleUI/src/index.native.tsx +270 -0
  294. package/Examples/SampleUI/src/index.tsx +226 -0
  295. package/Examples/SampleUI/src/react-navigation/index.tsx +19 -0
  296. package/Examples/SampleUI/src/react-navigation/navigators/createMaterialBottomTabNavigator.tsx +72 -0
  297. package/Examples/SampleUI/src/react-navigation/types.tsx +126 -0
  298. package/Examples/SampleUI/src/react-navigation/views/MaterialBottomTabView.tsx +140 -0
  299. package/Examples/SampleUI/src/styles/__tests__/fonts.test.js +290 -0
  300. package/Examples/SampleUI/src/styles/fonts.tsx +143 -0
  301. package/Examples/SampleUI/src/styles/overlay.tsx +70 -0
  302. package/Examples/SampleUI/src/styles/shadow.tsx +109 -0
  303. package/Examples/SampleUI/src/styles/themes/index.ts +4 -0
  304. package/Examples/SampleUI/src/styles/themes/v2/DarkTheme.tsx +30 -0
  305. package/Examples/SampleUI/src/styles/themes/v2/LightTheme.tsx +30 -0
  306. package/Examples/SampleUI/src/styles/themes/v2/colors.tsx +277 -0
  307. package/Examples/SampleUI/src/styles/themes/v3/DarkTheme.tsx +66 -0
  308. package/Examples/SampleUI/src/styles/themes/v3/LightTheme.tsx +69 -0
  309. package/Examples/SampleUI/src/styles/themes/v3/tokens.tsx +230 -0
  310. package/Examples/SampleUI/src/utils/BackHandler/BackHandler.native.tsx +3 -0
  311. package/Examples/SampleUI/src/utils/BackHandler/BackHandler.tsx +11 -0
  312. package/Examples/SampleUI/src/utils/addEventListener.tsx +56 -0
  313. package/Examples/SampleUI/src/utils/forwardRef.tsx +23 -0
  314. package/Examples/SampleUI/src/utils/getContrastingColor.tsx +15 -0
  315. package/Examples/SampleUI/src/utils/hasTouchHandler.tsx +23 -0
  316. package/Examples/SampleUI/src/utils/roundLayoutSize.ts +2 -0
  317. package/Examples/SampleUI/src/utils/splitStyles.ts +60 -0
  318. package/Examples/SampleUI/src/utils/useAnimatedValue.tsx +9 -0
  319. package/Examples/SampleUI/src/utils/useAnimatedValueArray.tsx +13 -0
  320. package/Examples/SampleUI/src/utils/useIsKeyboardShown.tsx +55 -0
  321. package/Examples/SampleUI/src/utils/useLayout.tsx +29 -0
  322. package/Examples/SampleUI/src/utils/useLazyRef.tsx +11 -0
  323. package/Examples/SampleUI/tsconfig.json +3 -0
  324. package/Examples/SampleUI/utils/index.ts +1426 -0
  325. package/lib/typescript/jslib/TLTRN.d.ts +5 -5
  326. package/lib/typescript/jslib/TLTRN.d.ts.map +1 -1
  327. package/package.json +7 -2
@@ -0,0 +1,2 @@
1
+ BUNDLE_PATH: "vendor/bundle"
2
+ BUNDLE_FORCE_RUBY_PLATFORM: 1
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: '@react-native',
4
+ };
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ arrowParens: 'avoid',
3
+ bracketSameLine: true,
4
+ bracketSpacing: false,
5
+ singleQuote: true,
6
+ trailingComma: 'all',
7
+ };
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ export { default } from './src/index';
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
+ ruby ">= 2.6.10"
5
+
6
+ # Exclude problematic versions of cocoapods and activesupport that causes build failures.
7
+ gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8
+ gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9
+ gem 'xcodeproj', '< 1.26.0'
10
+ gem 'concurrent-ruby', '< 1.3.4'
@@ -0,0 +1,121 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ CFPropertyList (3.0.7)
5
+ base64
6
+ nkf
7
+ rexml
8
+ activesupport (7.1.5.1)
9
+ base64
10
+ benchmark (>= 0.3)
11
+ bigdecimal
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ connection_pool (>= 2.2.5)
14
+ drb
15
+ i18n (>= 1.6, < 2)
16
+ logger (>= 1.4.2)
17
+ minitest (>= 5.1)
18
+ mutex_m
19
+ securerandom (>= 0.3)
20
+ tzinfo (~> 2.0)
21
+ addressable (2.8.7)
22
+ public_suffix (>= 2.0.2, < 7.0)
23
+ algoliasearch (1.27.5)
24
+ httpclient (~> 2.8, >= 2.8.3)
25
+ json (>= 1.5.1)
26
+ atomos (0.1.3)
27
+ base64 (0.2.0)
28
+ benchmark (0.4.0)
29
+ bigdecimal (3.1.9)
30
+ claide (1.1.0)
31
+ cocoapods (1.15.2)
32
+ addressable (~> 2.8)
33
+ claide (>= 1.0.2, < 2.0)
34
+ cocoapods-core (= 1.15.2)
35
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
36
+ cocoapods-downloader (>= 2.1, < 3.0)
37
+ cocoapods-plugins (>= 1.0.0, < 2.0)
38
+ cocoapods-search (>= 1.0.0, < 2.0)
39
+ cocoapods-trunk (>= 1.6.0, < 2.0)
40
+ cocoapods-try (>= 1.1.0, < 2.0)
41
+ colored2 (~> 3.1)
42
+ escape (~> 0.0.4)
43
+ fourflusher (>= 2.3.0, < 3.0)
44
+ gh_inspector (~> 1.0)
45
+ molinillo (~> 0.8.0)
46
+ nap (~> 1.0)
47
+ ruby-macho (>= 2.3.0, < 3.0)
48
+ xcodeproj (>= 1.23.0, < 2.0)
49
+ cocoapods-core (1.15.2)
50
+ activesupport (>= 5.0, < 8)
51
+ addressable (~> 2.8)
52
+ algoliasearch (~> 1.0)
53
+ concurrent-ruby (~> 1.1)
54
+ fuzzy_match (~> 2.0.4)
55
+ nap (~> 1.0)
56
+ netrc (~> 0.11)
57
+ public_suffix (~> 4.0)
58
+ typhoeus (~> 1.0)
59
+ cocoapods-deintegrate (1.0.5)
60
+ cocoapods-downloader (2.1)
61
+ cocoapods-plugins (1.0.0)
62
+ nap
63
+ cocoapods-search (1.0.1)
64
+ cocoapods-trunk (1.6.0)
65
+ nap (>= 0.8, < 2.0)
66
+ netrc (~> 0.11)
67
+ cocoapods-try (1.2.0)
68
+ colored2 (3.1.2)
69
+ concurrent-ruby (1.3.3)
70
+ connection_pool (2.5.2)
71
+ drb (2.2.1)
72
+ escape (0.0.4)
73
+ ethon (0.16.0)
74
+ ffi (>= 1.15.0)
75
+ ffi (1.17.2)
76
+ fourflusher (2.3.1)
77
+ fuzzy_match (2.0.4)
78
+ gh_inspector (1.1.3)
79
+ httpclient (2.9.0)
80
+ mutex_m
81
+ i18n (1.14.7)
82
+ concurrent-ruby (~> 1.0)
83
+ json (2.10.2)
84
+ logger (1.7.0)
85
+ minitest (5.25.5)
86
+ molinillo (0.8.0)
87
+ mutex_m (0.3.0)
88
+ nanaimo (0.3.0)
89
+ nap (1.1.0)
90
+ netrc (0.11.0)
91
+ nkf (0.2.0)
92
+ public_suffix (4.0.7)
93
+ rexml (3.4.1)
94
+ ruby-macho (2.5.1)
95
+ securerandom (0.3.2)
96
+ typhoeus (1.4.1)
97
+ ethon (>= 0.9.0)
98
+ tzinfo (2.0.6)
99
+ concurrent-ruby (~> 1.0)
100
+ xcodeproj (1.25.1)
101
+ CFPropertyList (>= 2.3.3, < 4.0)
102
+ atomos (~> 0.1.3)
103
+ claide (>= 1.0.2, < 2.0)
104
+ colored2 (~> 3.1)
105
+ nanaimo (~> 0.3.0)
106
+ rexml (>= 3.3.6, < 4.0)
107
+
108
+ PLATFORMS
109
+ ruby
110
+
111
+ DEPENDENCIES
112
+ activesupport (>= 6.1.7.5, != 7.1.0)
113
+ cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
114
+ concurrent-ruby (< 1.3.4)
115
+ xcodeproj (< 1.26.0)
116
+
117
+ RUBY VERSION
118
+ ruby 3.0.0p0
119
+
120
+ BUNDLED WITH
121
+ 2.2.3
@@ -0,0 +1,79 @@
1
+ This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
2
+
3
+ # Getting Started
4
+
5
+ >**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
6
+
7
+ ## Step 1: Start the Metro Server
8
+
9
+ First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
10
+
11
+ To start Metro, run the following command from the _root_ of your React Native project:
12
+
13
+ ```bash
14
+ # using npm
15
+ npm start
16
+
17
+ # OR using Yarn
18
+ yarn start
19
+ ```
20
+
21
+ ## Step 2: Start your Application
22
+
23
+ Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app:
24
+
25
+ ### For Android
26
+
27
+ ```bash
28
+ # using npm
29
+ npm run android
30
+
31
+ # OR using Yarn
32
+ yarn android
33
+ ```
34
+
35
+ ### For iOS
36
+
37
+ ```bash
38
+ # using npm
39
+ npm run ios
40
+
41
+ # OR using Yarn
42
+ yarn ios
43
+ ```
44
+
45
+ If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
46
+
47
+ This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
48
+
49
+ ## Step 3: Modifying your App
50
+
51
+ Now that you have successfully run the app, let's modify it.
52
+
53
+ 1. Open `App.tsx` in your text editor of choice and edit some lines.
54
+ 2. For **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Developer Menu** (<kbd>Ctrl</kbd> + <kbd>M</kbd> (on Window and Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (on macOS)) to see your changes!
55
+
56
+ For **iOS**: Hit <kbd>Cmd ⌘</kbd> + <kbd>R</kbd> in your iOS Simulator to reload the app and see your changes!
57
+
58
+ ## Congratulations! :tada:
59
+
60
+ You've successfully run and modified your React Native App. :partying_face:
61
+
62
+ ### Now what?
63
+
64
+ - If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
65
+ - If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started).
66
+
67
+ # Troubleshooting
68
+
69
+ If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
70
+
71
+ # Learn More
72
+
73
+ To learn more about React Native, take a look at the following resources:
74
+
75
+ - [React Native Website](https://reactnative.dev) - learn more about React Native.
76
+ - [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
77
+ - [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
78
+ - [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
79
+ - [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @format
3
+ */
4
+
5
+ import 'react-native';
6
+ import React from 'react';
7
+ import App from '../App';
8
+
9
+ // Note: import explicitly to use the types shipped with jest.
10
+ import {it} from '@jest/globals';
11
+
12
+ // Note: test renderer must be required after react-native.
13
+ import renderer from 'react-test-renderer';
14
+
15
+ it('renders correctly', () => {
16
+ renderer.create(<App />);
17
+ });
@@ -0,0 +1,124 @@
1
+ apply plugin: "com.android.application"
2
+ apply plugin: "org.jetbrains.kotlin.android"
3
+ apply plugin: "com.facebook.react"
4
+
5
+ /**
6
+ * This is the configuration block to customize your React Native Android app.
7
+ * By default you don't need to apply any configuration, just uncomment the lines you need.
8
+ */
9
+ react {
10
+ /* Folders */
11
+ // The root of your project, i.e. where "package.json" lives. Default is '../..'
12
+ // root = file("../../")
13
+ // The folder where the react-native NPM package is. Default is ../../node_modules/react-native
14
+ // reactNativeDir = file("../../node_modules/react-native")
15
+ // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
16
+ // codegenDir = file("../../node_modules/@react-native/codegen")
17
+ // The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
18
+ // cliFile = file("../../node_modules/react-native/cli.js")
19
+
20
+ /* Variants */
21
+ // The list of variants to that are debuggable. For those we're going to
22
+ // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
23
+ // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
24
+ // debuggableVariants = ["liteDebug", "prodDebug"]
25
+
26
+ /* Bundling */
27
+ // A list containing the node command and its flags. Default is just 'node'.
28
+ // nodeExecutableAndArgs = ["node"]
29
+ //
30
+ // The command to run when bundling. By default is 'bundle'
31
+ // bundleCommand = "ram-bundle"
32
+ //
33
+ // The path to the CLI configuration file. Default is empty.
34
+ // bundleConfig = file(../rn-cli.config.js)
35
+ //
36
+ // The name of the generated asset file containing your JS bundle
37
+ // bundleAssetName = "MyApplication.android.bundle"
38
+ //
39
+ // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
40
+ // entryFile = file("../js/MyApplication.android.js")
41
+ //
42
+ // A list of extra flags to pass to the 'bundle' commands.
43
+ // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
44
+ // extraPackagerArgs = []
45
+
46
+ /* Hermes Commands */
47
+ // The hermes compiler command to run. By default it is 'hermesc'
48
+ // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
49
+ //
50
+ // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
51
+ // hermesFlags = ["-O", "-output-source-map"]
52
+
53
+ /* Autolinking */
54
+ autolinkLibrariesWithApp()
55
+ //
56
+ // Added by install-expo-modules
57
+ entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", rootDir.getAbsoluteFile().getParentFile().getAbsolutePath(), "android", "absolute"].execute(null, rootDir).text.trim())
58
+ cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim())
59
+ bundleCommand = "export:embed"
60
+ }
61
+
62
+ /**
63
+ * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
64
+ */
65
+ def enableProguardInReleaseBuilds = false
66
+
67
+ /**
68
+ * The preferred build flavor of JavaScriptCore (JSC)
69
+ *
70
+ * For example, to use the international variant, you can use:
71
+ * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
72
+ *
73
+ * The international variant includes ICU i18n library and necessary data
74
+ * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
75
+ * give correct results when using with locales other than en-US. Note that
76
+ * this variant is about 6MiB larger per architecture than default.
77
+ */
78
+ def jscFlavor = 'org.webkit:android-jsc:+'
79
+
80
+ android {
81
+ ndkVersion = rootProject.ext.ndkVersion
82
+ buildToolsVersion rootProject.ext.buildToolsVersion
83
+ compileSdk = rootProject.ext.compileSdkVersion
84
+
85
+ namespace = "com.sampleui"
86
+ defaultConfig {
87
+ applicationId "com.sampleui"
88
+ minSdkVersion rootProject.ext.minSdkVersion
89
+ targetSdkVersion rootProject.ext.targetSdkVersion
90
+ versionCode 1
91
+ versionName "1.0"
92
+ }
93
+ signingConfigs {
94
+ debug {
95
+ storeFile file('debug.keystore')
96
+ storePassword 'android'
97
+ keyAlias 'androiddebugkey'
98
+ keyPassword 'android'
99
+ }
100
+ }
101
+ buildTypes {
102
+ debug {
103
+ signingConfig = signingConfigs.debug
104
+ }
105
+ release {
106
+ // Caution! In production, you need to generate your own keystore file.
107
+ // see https://reactnative.dev/docs/signed-apk-android.
108
+ signingConfig = signingConfigs.debug
109
+ minifyEnabled enableProguardInReleaseBuilds
110
+ proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
111
+ }
112
+ }
113
+ }
114
+
115
+ dependencies {
116
+ // The version of react-native is set by the React Native Gradle Plugin
117
+ implementation("com.facebook.react:react-android")
118
+
119
+ if (hermesEnabled.toBoolean()) {
120
+ implementation("com.facebook.react:hermes-android")
121
+ } else {
122
+ implementation jscFlavor
123
+ }
124
+ }
@@ -0,0 +1,10 @@
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:
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ xmlns:tools="http://schemas.android.com/tools">
4
+
5
+ <application
6
+ android:usesCleartextTraffic="true"
7
+ tools:targetApi="28"
8
+ tools:ignore="GoogleAppIndexingWarning"/>
9
+ </manifest>
@@ -0,0 +1,26 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+
3
+ <uses-permission android:name="android.permission.INTERNET" />
4
+
5
+ <application
6
+ android:name=".MainApplication"
7
+ android:label="@string/app_name"
8
+ android:icon="@mipmap/ic_launcher"
9
+ android:roundIcon="@mipmap/ic_launcher_round"
10
+ android:allowBackup="false"
11
+ android:theme="@style/AppTheme"
12
+ android:supportsRtl="true">
13
+ <activity
14
+ android:name=".MainActivity"
15
+ android:label="@string/app_name"
16
+ android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
17
+ android:launchMode="singleTask"
18
+ android:windowSoftInputMode="adjustResize"
19
+ android:exported="true">
20
+ <intent-filter>
21
+ <action android:name="android.intent.action.MAIN" />
22
+ <category android:name="android.intent.category.LAUNCHER" />
23
+ </intent-filter>
24
+ </activity>
25
+ </application>
26
+ </manifest>
@@ -0,0 +1,23 @@
1
+ package com.sampleui
2
+ import expo.modules.ReactActivityDelegateWrapper
3
+
4
+ import com.facebook.react.ReactActivity
5
+ import com.facebook.react.ReactActivityDelegate
6
+ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
7
+ import com.facebook.react.defaults.DefaultReactActivityDelegate
8
+
9
+ class MainActivity : ReactActivity() {
10
+
11
+ /**
12
+ * Returns the name of the main component registered from JavaScript. This is used to schedule
13
+ * rendering of the component.
14
+ */
15
+ override fun getMainComponentName(): String = "SampleUI"
16
+
17
+ /**
18
+ * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
19
+ * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
20
+ */
21
+ override fun createReactActivityDelegate(): ReactActivityDelegate =
22
+ ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled))
23
+ }
@@ -0,0 +1,53 @@
1
+ package com.sampleui
2
+ import android.content.res.Configuration
3
+ import expo.modules.ApplicationLifecycleDispatcher
4
+ import expo.modules.ReactNativeHostWrapper
5
+
6
+ import android.app.Application
7
+ import com.facebook.react.PackageList
8
+ import com.facebook.react.ReactApplication
9
+ import com.facebook.react.ReactHost
10
+ import com.facebook.react.ReactNativeHost
11
+ import com.facebook.react.ReactPackage
12
+ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
13
+ import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
14
+ import com.facebook.react.defaults.DefaultReactNativeHost
15
+ import com.facebook.react.soloader.OpenSourceMergedSoMapping
16
+ import com.facebook.soloader.SoLoader
17
+
18
+ class MainApplication : Application(), ReactApplication {
19
+
20
+ override val reactNativeHost: ReactNativeHost =
21
+ ReactNativeHostWrapper(this, object : DefaultReactNativeHost(this) {
22
+ override fun getPackages(): List<ReactPackage> =
23
+ PackageList(this).packages.apply {
24
+ // Packages that cannot be autolinked yet can be added manually here, for example:
25
+ // add(MyReactNativePackage())
26
+ }
27
+
28
+ override fun getJSMainModuleName(): String = "index"
29
+
30
+ override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
31
+
32
+ override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
33
+ override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
34
+ })
35
+
36
+ override val reactHost: ReactHost
37
+ get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
38
+
39
+ override fun onCreate() {
40
+ super.onCreate()
41
+ SoLoader.init(this, OpenSourceMergedSoMapping)
42
+ if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
43
+ // If you opted-in for the New Architecture, we load the native entry point for this app.
44
+ load()
45
+ }
46
+ ApplicationLifecycleDispatcher.onApplicationCreate(this)
47
+ }
48
+
49
+ override fun onConfigurationChanged(newConfig: Configuration) {
50
+ super.onConfigurationChanged(newConfig)
51
+ ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)
52
+ }
53
+ }
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Copyright (C) 2014 The Android Open Source Project
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <inset xmlns:android="http://schemas.android.com/apk/res/android"
17
+ android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
+ android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
+ android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
+ android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21
+ >
22
+
23
+ <selector>
24
+ <!--
25
+ This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
26
+ The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
27
+ NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
28
+
29
+ <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
30
+
31
+ For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
32
+ -->
33
+ <item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
34
+ <item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
35
+ </selector>
36
+
37
+ </inset>
@@ -0,0 +1,3 @@
1
+ <resources>
2
+ <string name="app_name">SampleUI</string>
3
+ </resources>
@@ -0,0 +1,9 @@
1
+ <resources>
2
+
3
+ <!-- Base application theme. -->
4
+ <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
5
+ <!-- Customize your theme here. -->
6
+ <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
7
+ </style>
8
+
9
+ </resources>
@@ -0,0 +1,21 @@
1
+ buildscript {
2
+ ext {
3
+ buildToolsVersion = "35.0.0"
4
+ minSdkVersion = 24
5
+ compileSdkVersion = 35
6
+ targetSdkVersion = 34
7
+ ndkVersion = "26.1.10909125"
8
+ kotlinVersion = "1.9.25"
9
+ }
10
+ repositories {
11
+ google()
12
+ mavenCentral()
13
+ }
14
+ dependencies {
15
+ classpath("com.android.tools.build:gradle")
16
+ classpath("com.facebook.react:react-native-gradle-plugin")
17
+ classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
18
+ }
19
+ }
20
+
21
+ apply plugin: "com.facebook.react.rootproject"
@@ -0,0 +1,7 @@
1
+ distributionBase=GRADLE_USER_HOME
2
+ distributionPath=wrapper/dists
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
4
+ networkTimeout=10000
5
+ validateDistributionUrl=true
6
+ zipStoreBase=GRADLE_USER_HOME
7
+ zipStorePath=wrapper/dists
@@ -0,0 +1,39 @@
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: -Xmx512m -XX:MaxMetaspaceSize=256m
13
+ org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
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
+ # AndroidX package structure to make it clearer which packages are bundled with the
21
+ # Android operating system, and which are packaged with your app's APK
22
+ # https://developer.android.com/topic/libraries/support-library/androidx-rn
23
+ android.useAndroidX=true
24
+
25
+ # Use this property to specify which architecture you want to build.
26
+ # You can also override it from the CLI using
27
+ # ./gradlew <task> -PreactNativeArchitectures=x86_64
28
+ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
29
+
30
+ # Use this property to enable support to the new architecture.
31
+ # This will allow you to use TurboModules and the Fabric render in
32
+ # your application. You should enable this flag either if you want
33
+ # to write custom TurboModules/Fabric components OR use libraries that
34
+ # are providing them.
35
+ newArchEnabled=true
36
+
37
+ # Use this property to enable or disable the Hermes JS engine.
38
+ # If set to false, you will be using JSC instead.
39
+ hermesEnabled=true