Skip to content

Commit 91ede09

Browse files
committed
refactor: update input components
1 parent d5a9ce3 commit 91ede09

16 files changed

Lines changed: 1176 additions & 1485 deletions

apps/example/ios/Podfile.lock

Lines changed: 440 additions & 1116 deletions
Large diffs are not rendered by default.

apps/example/metro.config.js

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
const path = require('path');
2-
const { getDefaultConfig } = require('@react-native/metro-config');
2+
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
33
const { withMetroConfig } = require('react-native-monorepo-config');
44

55
const root = path.resolve(__dirname, '../..');
6+
const defaultConfig = getDefaultConfig(__dirname);
7+
const { assetExts, sourceExts } = defaultConfig.resolver;
68

7-
/**
8-
* Metro configuration
9-
* https://facebook.github.io/metro/docs/configuration
10-
*
11-
* @type {import('metro-config').MetroConfig}
12-
*/
13-
module.exports = withMetroConfig(getDefaultConfig(__dirname), {
14-
root,
15-
dirname: __dirname,
16-
});
9+
module.exports = withMetroConfig(
10+
mergeConfig(defaultConfig, {
11+
transformer: {
12+
babelTransformerPath: require.resolve('react-native-svg-transformer'),
13+
},
14+
resolver: {
15+
assetExts: assetExts.filter((ext) => ext !== 'svg'),
16+
sourceExts: [...sourceExts, 'svg'],
17+
},
18+
}),
19+
{ root, dirname: __dirname }
20+
);

apps/example/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"react": "19.2.3",
1717
"react-native": "0.84.1",
1818
"react-native-safe-area-context": "^5.5.2",
19-
"react-native-screens": "^4.24.0"
19+
"react-native-screens": "^4.24.0",
20+
"react-native-svg": "^15.15.4"
2021
},
2122
"devDependencies": {
2223
"@babel/core": "^7.25.2",
@@ -30,7 +31,8 @@
3031
"@react-native/typescript-config": "0.84.1",
3132
"@types/react": "^19.2.0",
3233
"react-native-builder-bob": "^0.40.18",
33-
"react-native-monorepo-config": "^0.3.3"
34+
"react-native-monorepo-config": "^0.3.3",
35+
"react-native-svg-transformer": "^1.5.3"
3436
},
3537
"engines": {
3638
"node": ">= 22.11.0"

apps/example/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export default function App() {
1313
initialRouteName="Home"
1414
screenOptions={{
1515
headerStyle: {
16-
backgroundColor: '#007AFF',
16+
backgroundColor: '#BEEBD0',
1717
},
18-
headerTintColor: '#fff',
18+
headerTintColor: '#001A72',
1919
headerTitleStyle: {
2020
fontWeight: 'bold',
2121
},
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)