Skip to content

Commit 176571f

Browse files
committed
chore: update example
1 parent 9e493d5 commit 176571f

File tree

10 files changed

+23
-186
lines changed

10 files changed

+23
-186
lines changed

example/babel.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ module.exports = function (api) {
2020
),
2121
// For development, we want to alias the library to the source
2222
[pak.name]: path.join(__dirname, '..', 'src'),
23-
'@react-native-vector-icons/material-design-icons':
24-
'@expo/vector-icons/MaterialCommunityIcons', //Fixes issue with icons not showing up on web (I also had to add @expo/vector-icons to react-native-paper devDependencies)
2523
},
2624
},
2725
],

example/metro.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const root = path.resolve(__dirname, '..');
1212
const defaultConfig = getDefaultConfig(__dirname);
1313

1414
const modules = [
15+
'@react-native-vector-icons/common',
16+
'@react-native-vector-icons/material-design-icons',
1517
'@expo/vector-icons',
1618
'expo-constants',
1719
...Object.keys(pak.peerDependencies),

example/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
},
4545
"devDependencies": {
4646
"@babel/core": "^7.25.2",
47-
"@react-native-vector-icons/common": "^11.0.0",
48-
"@react-native-vector-icons/material-design-icons": "^7.4.47",
4947
"babel-plugin-module-resolver": "^5.0.0",
5048
"babel-preset-expo": "~12.0.0",
5149
"url-loader": "^4.1.1"

example/src/Examples/AnimatedFABExample/AnimatedFABExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import type { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
33
import { Animated, FlatList, Platform, StyleSheet, View } from 'react-native';
44

5-
import Icon from '@react-native-vector-icons/material-design-icons';
5+
import Icon from '@expo/vector-icons/MaterialCommunityIcons';
66
import {
77
Avatar,
88
MD2Colors,

example/src/Examples/BottomNavigationBarExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { View, StyleSheet } from 'react-native';
33

4-
import Icon from '@react-native-vector-icons/material-design-icons';
4+
import Icon from '@expo/vector-icons/MaterialCommunityIcons';
55
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
66
import { CommonActions } from '@react-navigation/native';
77
import { Text, BottomNavigation } from 'react-native-paper';

example/src/Examples/MaterialBottomTabNavigatorExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { StyleSheet, Text, View } from 'react-native';
33

4-
import Icon from '@react-native-vector-icons/material-design-icons';
4+
import Icon from '@expo/vector-icons/MaterialCommunityIcons';
55

66
import { createMaterialBottomTabNavigator } from '../../../src/react-navigation';
77

example/src/Examples/TextInputExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
View,
88
} from 'react-native';
99

10-
import Icon from '@react-native-vector-icons/material-design-icons';
10+
import Icon from '@expo/vector-icons/MaterialCommunityIcons';
1111
import { useFonts } from 'expo-font';
1212
import {
1313
configureFonts,

example/src/Examples/ThemingWithReactNavigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { View, StyleSheet } from 'react-native';
33

4-
import Icon from '@react-native-vector-icons/material-design-icons';
4+
import Icon from '@expo/vector-icons/MaterialCommunityIcons';
55
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
66
import { createStackNavigator } from '@react-navigation/stack';
77
import { Text } from 'react-native-paper';

0 commit comments

Comments
 (0)