forked from vergnet/application-amicale
		
	Use react native vector icons instead of expo implementation
This commit is contained in:
		
							parent
							
								
									660bbd856a
								
							
						
					
					
						commit
						ca6f66c661
					
				
					 9 changed files with 19 additions and 6 deletions
				
			
		|  | @ -83,6 +83,12 @@ project.ext.react = [ | |||
| apply from: '../../node_modules/react-native-unimodules/gradle.groovy' | ||||
| apply from: "../../node_modules/react-native/react.gradle" | ||||
| 
 | ||||
| project.ext.vectoricons = [ | ||||
|     iconFontNames: [ 'MaterialCommunityIcons.ttf'] // Name of the font files you want to copy | ||||
| ] | ||||
| 
 | ||||
| apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" | ||||
| 
 | ||||
| /** | ||||
|  * Set this to true to create two separate APKs instead of one: | ||||
|  *   - An APK that only works on ARM devices | ||||
|  |  | |||
|  | @ -71,5 +71,9 @@ | |||
| 	<string>Automatic</string> | ||||
| 	<key>UIViewControllerBasedStatusBarAppearance</key> | ||||
| 	<false/> | ||||
| 	<key>UIAppFonts</key> | ||||
|     <array> | ||||
|       <string>MaterialCommunityIcons.ttf</string> | ||||
|     </array> | ||||
| </dict> | ||||
| </plist> | ||||
|  |  | |||
|  | @ -50,4 +50,7 @@ target 'Campus' do | |||
|   pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec" | ||||
|   pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec" | ||||
| 
 | ||||
|   # Vector Icons | ||||
|   pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' | ||||
| 
 | ||||
| end | ||||
|  |  | |||
|  | @ -18,7 +18,6 @@ | |||
|     ] | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@expo/vector-icons": "^10.0.0", | ||||
|     "@react-native-community/masked-view": "0.1.6", | ||||
|     "@react-navigation/bottom-tabs": "^5.1.1", | ||||
|     "@react-navigation/drawer": "^5.1.1", | ||||
|  | @ -51,6 +50,7 @@ | |||
|     "react-native-screens": "~2.2.0", | ||||
|     "react-native-splash-screen": "^3.2.0", | ||||
|     "react-native-unimodules": "~0.9.0", | ||||
|     "react-native-vector-icons": "^6.6.0", | ||||
|     "react-native-web": "~0.11.7", | ||||
|     "react-native-webview": "8.1.1", | ||||
|     "react-navigation-collapsible": "^5.5.0", | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| // @flow
 | ||||
| 
 | ||||
| import * as React from 'react'; | ||||
| import {MaterialCommunityIcons} from "@expo/vector-icons"; | ||||
| import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"; | ||||
| import {HeaderButton, HeaderButtons} from 'react-navigation-header-buttons'; | ||||
| import {withTheme} from "react-native-paper"; | ||||
| import * as Touchable from "react-native/Libraries/Components/Touchable/TouchableNativeFeedback.android"; | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ | |||
| 
 | ||||
| import * as React from 'react'; | ||||
| import {Image, Platform, StatusBar, StyleSheet, View} from "react-native"; | ||||
| import {MaterialCommunityIcons} from "@expo/vector-icons"; | ||||
| import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"; | ||||
| import {Text} from "react-native-paper"; | ||||
| import i18n from 'i18n-js'; | ||||
| import AppIntroSlider from "react-native-app-intro-slider"; | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
| import * as React from 'react'; | ||||
| import {Button, Subheading, withTheme} from 'react-native-paper'; | ||||
| import {StyleSheet, View} from "react-native"; | ||||
| import {MaterialCommunityIcons} from "@expo/vector-icons"; | ||||
| import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"; | ||||
| import i18n from 'i18n-js'; | ||||
| import {ERROR_TYPE} from "../../utils/WebData"; | ||||
| import * as Animatable from 'react-native-animatable'; | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
| import * as React from 'react'; | ||||
| import {View} from "react-native"; | ||||
| import {TouchableRipple, withTheme} from 'react-native-paper'; | ||||
| import {MaterialCommunityIcons} from "@expo/vector-icons"; | ||||
| import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"; | ||||
| import * as Animatable from "react-native-animatable"; | ||||
| 
 | ||||
| type Props = { | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
| import * as React from 'react'; | ||||
| import {Alert, View} from 'react-native'; | ||||
| import {IconButton, Text, withTheme} from 'react-native-paper'; | ||||
| import {MaterialCommunityIcons} from "@expo/vector-icons"; | ||||
| import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"; | ||||
| import GameLogic from "./GameLogic"; | ||||
| import Grid from "./components/Grid"; | ||||
| import Preview from "./components/Preview"; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue