Skip to content

Commit 2b5e658

Browse files
authored
Merge pull request react-native-elements#3984 from deepktp/vikalp-next
Merge changes from vikalp elements
0 parents  commit 2b5e658

90 files changed

Lines changed: 4414 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ci/setupTests.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { jest } from '@jest/globals';
2+
3+
jest.useFakeTimers();

.ci/testHelper.tsx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import React, { JSXElementConstructor } from 'react';
2+
import { View } from 'react-native';
3+
import {
4+
render,
5+
RenderOptions,
6+
fireEvent,
7+
act,
8+
} from '@testing-library/react-native';
9+
import {
10+
ThemeProvider,
11+
FullTheme,
12+
createTheme,
13+
CreateThemeOptions,
14+
} from '../src/config';
15+
16+
export { fireEvent, act };
17+
18+
// for getting findByType e.g. wrapper.findByType(Icon) see implementation in Avatar Component
19+
export const renderWithWrapper = (
20+
children: React.ReactElement<any, string | JSXElementConstructor<any>>,
21+
wrapperTestID?: string,
22+
themeProp: Partial<CreateThemeOptions> = {},
23+
renderOptions?: RenderOptions
24+
) => {
25+
const options: RenderOptions = {
26+
...(!wrapperTestID && {
27+
wrapper: (props) => <View {...props} testID="wrapper" />,
28+
}),
29+
...renderOptions,
30+
};
31+
const renderApi = render(
32+
<ThemeProvider theme={createTheme(themeProp)}>{children}</ThemeProvider>,
33+
options
34+
);
35+
const wrapper = renderApi.queryByTestId(wrapperTestID || 'wrapper')!;
36+
return { wrapper, ...renderApi };
37+
};

.docgenignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
.DS_Store
3+
*.log
4+
site
5+
coverage
6+
jsconfig.json
7+
.vscode/
8+
.idea/
9+
package-lock.json
10+
build
11+
*.orig
12+
.docgen/

CHANGELOG.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
# 4.0.0-rc.7 (2022-10-28)
7+
8+
9+
### Bug Fixes
10+
11+
* property 'children' does not exist in React 18 ([#3663](https://github.com/react-native-elements/react-native-elements/issues/3663)) ([4b859e5](https://github.com/react-native-elements/react-native-elements/commit/4b859e5da5346743d5d5d09a3cd8d6459b70fc29))
12+
* undefined `components` in useTheme hook ([#3643](https://github.com/react-native-elements/react-native-elements/issues/3643)) ([64a1160](https://github.com/react-native-elements/react-native-elements/commit/64a116095c969d15b562ce0fd69a450becaa1379))
13+
14+
15+
### Features
16+
17+
* add theme to `ComponentFunctionProps` ([#3645](https://github.com/react-native-elements/react-native-elements/issues/3645)) ([4caef0c](https://github.com/react-native-elements/react-native-elements/commit/4caef0c74518fd6e3e501df79f8e97eeff7cbec3))
18+
* update Tab component ([#3658](https://github.com/react-native-elements/react-native-elements/issues/3658)) ([67eb98b](https://github.com/react-native-elements/react-native-elements/commit/67eb98b82b035eb554d87b40988077b169c0d571))
19+
20+
21+
22+
# 4.0.0-rc.6 (2022-07-31)
23+
24+
25+
### Bug Fixes
26+
27+
* typo when exporting colors types ([#3580](https://github.com/react-native-elements/react-native-elements/issues/3580)) ([32e1136](https://github.com/react-native-elements/react-native-elements/commit/32e113640ceec81f5e583137c6d5c0c35f6efe73)), closes [#3579](https://github.com/react-native-elements/react-native-elements/issues/3579)
28+
* **Button:** theme spacing xs error ([#3563](https://github.com/react-native-elements/react-native-elements/issues/3563)) ([172499f](https://github.com/react-native-elements/react-native-elements/commit/172499fb44d0e99210a670eaa97990bbc8b3e53f))
29+
30+
31+
32+
# 4.0.0-rc.4 (2022-05-21)
33+
34+
35+
### Bug Fixes
36+
37+
* **makeStyles:** add `Theme` in makeStyle interface ([#3526](https://github.com/react-native-elements/react-native-elements/issues/3526)) ([9d392bd](https://github.com/react-native-elements/react-native-elements/commit/9d392bd12344ffe42f2a8fdaa806db74a09965e0))
38+
* **withTheme:** add `spacing` to non-ThemeProvider components ([#3525](https://github.com/react-native-elements/react-native-elements/issues/3525)) ([2ec13f9](https://github.com/react-native-elements/react-native-elements/commit/2ec13f953d12793e7b78dccfa329f6eba3ba5689))
39+
40+
41+
42+
# 4.0.0-rc.3 (2022-05-09)
43+
44+
45+
### Bug Fixes
46+
47+
* **makeStyles:** theme param type ([3f479a6](https://github.com/react-native-elements/react-native-elements/commit/3f479a66c3569e4e2a6a200bd58595becc0c5575))
48+
49+
50+
### Features
51+
52+
* **Button:** add title as children,`size`, `color`, `radius` prop ([#3494](https://github.com/react-native-elements/react-native-elements/issues/3494)) ([4774fae](https://github.com/react-native-elements/react-native-elements/commit/4774fae98968d532f2f1e1ab43793ccb71c24b37))
53+
* **theming:** add `spacing` to theme ([#3495](https://github.com/react-native-elements/react-native-elements/issues/3495)) ([f71f16e](https://github.com/react-native-elements/react-native-elements/commit/f71f16eae0279baa183009799f5ecfa0a96b714d))
54+
55+
56+
57+
# 4.0.0-rc.2 (2022-04-27)
58+
59+
60+
### Bug Fixes
61+
62+
* **SearchBar:** typescript errors ([#3437](https://github.com/react-native-elements/react-native-elements/issues/3437)) ([ec01b65](https://github.com/react-native-elements/react-native-elements/commit/ec01b65cbbb3a3795e0450a4c744acffa2b31d56))
63+
* **SpeedDial.Action:** wrap with pressable ([#3480](https://github.com/react-native-elements/react-native-elements/issues/3480)) ([6de7aa0](https://github.com/react-native-elements/react-native-elements/commit/6de7aa0985edc90a0325244227eda9e4aab71b60))
64+
* **SpeedDial:** Left placement for Actions ([#3479](https://github.com/react-native-elements/react-native-elements/issues/3479)) ([d006fe9](https://github.com/react-native-elements/react-native-elements/commit/d006fe9f532430a00931877be8a5cda4b4027942))
65+
* **ThemeProvider:** add `children` prop explicitly ([#3477](https://github.com/react-native-elements/react-native-elements/issues/3477)) ([45f9523](https://github.com/react-native-elements/react-native-elements/commit/45f9523300d9bcc74837ddc01dc6b787cb4be54b))
66+
* **Theming:** extend default theme ([#3450](https://github.com/react-native-elements/react-native-elements/issues/3450)) ([587d8db](https://github.com/react-native-elements/react-native-elements/commit/587d8dbf8aef0beb9cd42683f16e52bbbe3b99c1))
67+
68+
69+
70+
# 4.0.0-rc.1 (2022-03-28)
71+
72+
73+
### Bug Fixes
74+
75+
* pkg entry point for react-native cli ([#3403](https://github.com/react-native-elements/react-native-elements/issues/3403)) ([2c4bf8a](https://github.com/react-native-elements/react-native-elements/commit/2c4bf8a4a31498ce4dd2aefe22cff5cfc13363f1))
76+
* remove Partial Color Type ([#3418](https://github.com/react-native-elements/react-native-elements/issues/3418)) ([c9c2bdc](https://github.com/react-native-elements/react-native-elements/commit/c9c2bdc58198392727c1b6affccf6201724a2391))
77+
78+
79+
80+
# 4.0.0-rc.0 (2022-03-16)
81+
82+
83+
### Bug Fixes
84+
85+
* collectCoverage ([483af88](https://github.com/react-native-elements/react-native-elements/commit/483af88803a48f343ff2965d9770f9a5ea71a033))
86+
87+
88+
### Features
89+
90+
* **Skeleton:** new universal component package ([#3357](https://github.com/react-native-elements/react-native-elements/issues/3357)) ([1cca2db](https://github.com/react-native-elements/react-native-elements/commit/1cca2db1967330ef42a67c9b885a460ed27a4762))

0 commit comments

Comments
 (0)