Skip to content

Commit 169c584

Browse files
committed
Merge branch 'master' into new-arch/master
2 parents 99db035 + b37eb9f commit 169c584

File tree

14 files changed

+772
-277
lines changed

14 files changed

+772
-277
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ module.exports = {
4848
},
4949
},
5050
],
51+
ignorePatterns: ['coverage/**/*', 'lib/**/*', 'docs/**/*'],
5152
};

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
- Update dependencies for React Navigation and related packages ([95053bb](https://github.com/Iterable/react-native-sdk/commit/95053bb))
1313

1414

15+
## 2.0.4
16+
17+
## Updates
18+
- Added API documentation via Netlify([1087275](https://github.com/Iterable/react-native-sdk/commit/1087275))
19+
- Removed dependency on `react-native-vector-icons`, per issues
20+
[#513](https://github.com/Iterable/react-native-sdk/issues/513),
21+
[#683](https://github.com/Iterable/react-native-sdk/issues/683) and
22+
[#675](https://github.com/Iterable/react-native-sdk/issues/675)
23+
([6ece6e0](https://github.com/Iterable/react-native-sdk/commit/6ece6e0))
24+
- Updated dependencies
25+
1526
## 2.0.3
1627

1728
### Updates

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Iterable's React Native SDK relies on:
4444
_UI Components require additional peer dependencies_
4545
- [React Navigation 6+](https://github.com/react-navigation/react-navigation)
4646
- [React Native Safe Area Context 4+](https://github.com/th3rdwave/react-native-safe-area-context)
47-
- [React Native Vector Icons 10+](https://github.com/oblador/react-native-vector-icons)
4847
- [React Native WebView 13+](https://github.com/react-native-webview/react-native-webview)
4948

5049
- **iOS**

example/android/app/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,3 @@ dependencies {
117117
implementation jscFlavor
118118
}
119119
}
120-
121-
apply from: file("../../node_modules/react-native-vector-icons/fonts.gradle")

example/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"react-native-gesture-handler": "^2.26.0",
2020
"react-native-safe-area-context": "^5.4.0",
2121
"react-native-screens": "^4.10.0",
22-
"react-native-vector-icons": "^10.2.0",
2322
"react-native-webview": "^13.14.1"
2423
},
2524
"devDependencies": {

example/src/components/App/App.constants.ts

Lines changed: 15 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
import Icon from 'react-native-vector-icons/Ionicons';
1+
import { Image, View } from 'react-native';
2+
import type { Route } from '../../constants/routes';
23

3-
export const getIcon = (name: string, props: Record<string, unknown>) => (
4-
<Icon name={name} {...props} />
5-
);
4+
export const getIcon = (name: Route, props: Record<string, unknown>) => {
5+
const { color, size = 25 } = props;
6+
7+
return (
8+
<View style={{ height: size as number, width: size as number }}>
9+
<Image
10+
source={{ width: size as number, height: size as number, uri: name }}
11+
tintColor={color as string}
12+
resizeMode="contain"
13+
style={{
14+
width: size as number,
15+
height: size as number,
16+
}}
17+
fadeDuration={0}
18+
height={size as number}
19+
width={size as number}
20+
resizeMethod="scale"
21+
/>
22+
</View>
23+
);
24+
};

example/src/components/App/Main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const Main = () => {
2525
screenOptions={({ route }) => {
2626
const iconName = routeIcon[route.name];
2727
return {
28-
tabBarIcon: (props) => getIcon(iconName, props),
28+
tabBarIcon: (props) => getIcon(iconName as Route, props),
2929
tabBarActiveTintColor: colors.brandPurple,
3030
tabBarInactiveTintColor: colors.textSecondary,
3131
headerShown: false,

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
],
77
testMatch: ['<rootDir>/src/**/*.(test|spec).[jt]s?(x)'],
88
transformIgnorePatterns: [
9-
'node_modules/(?!(react-native|@react-native|@react-navigation|react-native-screens|react-native-safe-area-context|react-native-gesture-handler|react-native-webview|react-native-vector-icons)/)',
9+
'node_modules/(?!(react-native|@react-native|@react-navigation|react-native-screens|react-native-safe-area-context|react-native-gesture-handler|react-native-webview)/)',
1010
],
1111
collectCoverageFrom: [
1212
'src/**/*.{cjs,js,jsx,mjs,ts,tsx}',

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"@testing-library/react-native": "^13.3.3",
8080
"@types/jest": "^29.5.5",
8181
"@types/react": "^19.0.0",
82-
"@types/react-native-vector-icons": "^6.4.18",
8382
"@typescript-eslint/eslint-plugin": "^8.13.0",
8483
"@typescript-eslint/parser": "^8.13.0",
8584
"commitlint": "^19.6.1",
@@ -91,13 +90,13 @@
9190
"eslint-plugin-tsdoc": "^0.3.0",
9291
"jest": "^29.7.0",
9392
"prettier": "^3.0.3",
93+
"prettier-eslint": "^16.4.2",
9494
"react": "19.0.0",
9595
"react-native": "0.79.3",
9696
"react-native-builder-bob": "^0.40.4",
9797
"react-native-gesture-handler": "^2.26.0",
9898
"react-native-safe-area-context": "^5.4.0",
9999
"react-native-screens": "^4.10.0",
100-
"react-native-vector-icons": "^10.2.0",
101100
"react-native-webview": "^13.14.1",
102101
"react-test-renderer": "19.0.0",
103102
"release-it": "^17.10.0",
@@ -115,7 +114,6 @@
115114
"react": "*",
116115
"react-native": "*",
117116
"react-native-safe-area-context": "*",
118-
"react-native-vector-icons": "*",
119117
"react-native-webview": "*"
120118
},
121119
"peerDependenciesMeta": {

0 commit comments

Comments
 (0)