Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,10 @@ PODS:
- react-native-config/App (= 1.5.1)
- react-native-config/App (1.5.1):
- React-Core
- react-native-keyboard-controller (1.11.6):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
- react-native-safe-area-context (4.8.2):
- React-Core
- React-nativeconfig (0.73.6)
Expand Down Expand Up @@ -1300,6 +1304,7 @@ DEPENDENCIES:
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
- react-native-config (from `../node_modules/react-native-config`)
- react-native-keyboard-controller (from `../node_modules/react-native-keyboard-controller`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
- React-nativeconfig (from `../node_modules/react-native/ReactCommon`)
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
Expand Down Expand Up @@ -1433,6 +1438,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon"
react-native-config:
:path: "../node_modules/react-native-config"
react-native-keyboard-controller:
:path: "../node_modules/react-native-keyboard-controller"
react-native-safe-area-context:
:path: "../node_modules/react-native-safe-area-context"
React-nativeconfig:
Expand Down Expand Up @@ -1546,6 +1553,7 @@ SPEC CHECKSUMS:
React-logger: 3eb80a977f0d9669468ef641a5e1fabbc50a09ec
React-Mapbuffer: 84ea43c6c6232049135b1550b8c60b2faac19fab
react-native-config: 86038147314e2e6d10ea9972022aa171e6b1d4d8
react-native-keyboard-controller: d7eb6a5884e1b193c902e02f2ca298e53cad3a77
react-native-safe-area-context: 0ee144a6170530ccc37a0fd9388e28d06f516a89
React-nativeconfig: b4d4e9901d4cabb57be63053fd2aa6086eb3c85f
React-NativeModulesApple: cd26e56d56350e123da0c1e3e4c76cb58a05e1ee
Expand Down
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"react-native-config": "^1.5.1",
"react-native-flash-message": "^0.4.2",
"react-native-gesture-handler": "~2.14.0",
"react-native-keyboard-controller": "^1.11.6",
"react-native-reanimated": "~3.6.2",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "^3.29.0",
Expand Down
13 changes: 8 additions & 5 deletions example/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ import StorybookUI from '@appello/mobile-ui/.storybook';
import React from 'react';
import { StyleSheet } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { KeyboardProvider } from 'react-native-keyboard-controller';
import { initialWindowMetrics, SafeAreaProvider } from 'react-native-safe-area-context';

import { componentsConfig, theme, UIKitConfigProvider } from './view/uiKit';

const RootApp: React.FC = () => {
return (
<GestureHandlerRootView style={styles.container}>
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
<UIKitConfigProvider componentsConfig={componentsConfig} theme={theme}>
<StorybookUI />
</UIKitConfigProvider>
</SafeAreaProvider>
<KeyboardProvider>
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
<UIKitConfigProvider componentsConfig={componentsConfig} theme={theme}>
<StorybookUI />
</UIKitConfigProvider>
</SafeAreaProvider>
</KeyboardProvider>
</GestureHandlerRootView>
);
};
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appello/mobile-ui",
"version": "1.1.11",
"version": "1.1.12",
"description": "Appello Software mobile UIKit",
"main": "dist/commonjs/index.js",
"module": "dist/module/index.js",
Expand Down Expand Up @@ -87,6 +87,7 @@
"react-hook-form": ">=7.43.5",
"react-native": ">=0.71.0",
"react-native-gesture-handler": ">=2.0.0",
"react-native-keyboard-controller": "^1.11.6",
"react-native-reanimated": ">=3.0.0",
"react-native-safe-area-context": "*",
"react-native-screens": "^3.29.0",
Expand Down Expand Up @@ -158,6 +159,7 @@
"react-native": "^0.71.4",
"react-native-builder-bob": "^0.23.2",
"react-native-gesture-handler": "^2.0.0",
"react-native-keyboard-controller": "^1.11.6",
"react-native-reanimated": "^3.6.1",
"react-native-safe-area-context": "^4.7.4",
"react-native-screens": "^3.29.0",
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/Label/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useCombinedPropsWithConfig } from '@appello/mobile-ui/hooks/useCombinedPropsWithConfig';
import { useCombinedStylesWithConfig } from '@appello/mobile-ui/hooks/useCombinedStylesWithConfig';
import { makeStyles } from '@appello/mobile-ui/utils';
import React from 'react';
import { View, ViewStyle } from 'react-native';

import { useCombinedPropsWithConfig } from '../../../hooks/useCombinedPropsWithConfig';
import { useCombinedStylesWithConfig } from '../../../hooks/useCombinedStylesWithConfig';
import { makeStyles } from '../../../utils';
import { AppText, AppTextProps } from '../AppText';

export interface LabelStyle {
Expand Down
7 changes: 4 additions & 3 deletions src/components/screens/ScreenContainer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { IS_IOS } from '@appello/mobile/lib/constants/platform';
import React, { useMemo } from 'react';
import { KeyboardAvoidingView, KeyboardAvoidingViewProps, ViewStyle } from 'react-native';
import { ViewStyle } from 'react-native';
import { KeyboardAvoidingView, KeyboardControllerProps } from 'react-native-keyboard-controller';
import { Edge, SafeAreaView, SafeAreaViewProps } from 'react-native-safe-area-context';

import { useCombinedPropsWithConfig } from '../../../hooks/useCombinedPropsWithConfig';
import { useCombinedStylesWithConfig } from '../../../hooks/useCombinedStylesWithConfig';
import { layout } from '../../../styles/layout';
import { makeStyles } from '../../../utils';

export interface ScreenContainerProps extends KeyboardAvoidingViewProps {
export interface ScreenContainerProps extends KeyboardControllerProps {
/* Header to render on top of the screen */
header?: React.ReactNode;
/* Screen content */
Expand Down Expand Up @@ -44,7 +45,7 @@ export const ScreenContainer: React.FC<ScreenContainerProps> = props => {
return (
<KeyboardAvoidingView
behavior={IS_IOS ? 'padding' : undefined}
contentContainerStyle={[layout.fill]}
contentContainerStyle={layout.fill}
{...restProps}
style={[style['screen-container'], containerStyle]}
>
Expand Down
15 changes: 15 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ __metadata:
react-native-animated-spinkit: ^1.5.2
react-native-builder-bob: ^0.23.2
react-native-gesture-handler: ^2.0.0
react-native-keyboard-controller: ^1.11.6
react-native-mask-input: ^1.2.3
react-native-reanimated: ^3.6.1
react-native-safe-area-context: ^4.7.4
Expand All @@ -235,13 +236,15 @@ __metadata:
"@react-native-async-storage/async-storage": ^1.22.2
"@react-navigation/elements": ^1.3.21
"@react-navigation/native": ^6.1.9
date-fns: ^3.6.0
expo: ">=48.0.0"
expo-linear-gradient: ">=12.0.0"
react: 18.2.0
react-dom: 18.2.0
react-hook-form: ">=7.43.5"
react-native: ">=0.71.0"
react-native-gesture-handler: ">=2.0.0"
react-native-keyboard-controller: ^1.11.6
react-native-reanimated: ">=3.0.0"
react-native-safe-area-context: "*"
react-native-screens: ^3.29.0
Expand Down Expand Up @@ -12342,6 +12345,7 @@ __metadata:
react-native-config: ^1.5.1
react-native-flash-message: ^0.4.2
react-native-gesture-handler: ~2.14.0
react-native-keyboard-controller: ^1.11.6
react-native-reanimated: ~3.6.2
react-native-safe-area-context: 4.8.2
react-native-screens: ^3.29.0
Expand Down Expand Up @@ -20216,6 +20220,17 @@ __metadata:
languageName: node
linkType: hard

"react-native-keyboard-controller@npm:^1.11.6":
version: 1.11.6
resolution: "react-native-keyboard-controller@npm:1.11.6"
peerDependencies:
react: "*"
react-native: "*"
react-native-reanimated: ">=2.3.0"
checksum: 7dc970b2063f4ca01853fd67d2e3287695edff077f76c2d12cd87024807dcffdb5f655d63afdcae20ee48f119cd6d405c990bb86e630d6076a122063b489e8c7
languageName: node
linkType: hard

"react-native-mask-input@npm:^1.2.3":
version: 1.2.3
resolution: "react-native-mask-input@npm:1.2.3"
Expand Down