Skip to content

Commit f6b1d64

Browse files
committed
feat: upgrade to ionicons 7.2.2
1 parent 77bf6b7 commit f6b1d64

File tree

1,179 files changed

+2587
-1890
lines changed

Some content is hidden

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

1,179 files changed

+2587
-1890
lines changed

example/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
root: true,
3-
extends: '@react-native-community',
3+
extends: '@react-native',
44
};

example/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ yarn-error.log
6161

6262
# Temporary files created by Metro to check the health of the file watcher
6363
.metro-health-check*
64+
65+
# testing
66+
/coverage

example/.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/.watchmanconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{}

example/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type SectionProps = PropsWithChildren<{
2929
title: string;
3030
}>;
3131

32-
function Section({children, title}: SectionProps): JSX.Element {
32+
function Section({children, title}: SectionProps): React.JSX.Element {
3333
const isDarkMode = useColorScheme() === 'dark';
3434
return (
3535
<View style={styles.sectionContainer}>
@@ -55,7 +55,7 @@ function Section({children, title}: SectionProps): JSX.Element {
5555
);
5656
}
5757

58-
function App(): JSX.Element {
58+
function App(): React.JSX.Element {
5959
const isDarkMode = useColorScheme() === 'dark';
6060

6161
const backgroundStyle = {

example/Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source 'https://rubygems.org'
22

33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4-
ruby File.read(File.join(__dir__, '.ruby-version')).strip
4+
ruby ">= 2.6.10"
55

6-
gem 'cocoapods', '~> 1.11', '>= 1.11.3'
6+
gem 'cocoapods', '~> 1.13'
7+
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'

example/Gemfile.lock

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,39 @@ GEM
33
specs:
44
CFPropertyList (3.0.6)
55
rexml
6-
activesupport (6.1.7.2)
6+
activesupport (6.1.7.6)
77
concurrent-ruby (~> 1.0, >= 1.0.2)
88
i18n (>= 1.6, < 2)
99
minitest (>= 5.1)
1010
tzinfo (~> 2.0)
1111
zeitwerk (~> 2.3)
12-
addressable (2.8.1)
12+
addressable (2.8.6)
1313
public_suffix (>= 2.0.2, < 6.0)
1414
algoliasearch (1.27.5)
1515
httpclient (~> 2.8, >= 2.8.3)
1616
json (>= 1.5.1)
1717
atomos (0.1.3)
1818
claide (1.1.0)
19-
cocoapods (1.11.3)
19+
cocoapods (1.14.3)
2020
addressable (~> 2.8)
2121
claide (>= 1.0.2, < 2.0)
22-
cocoapods-core (= 1.11.3)
22+
cocoapods-core (= 1.14.3)
2323
cocoapods-deintegrate (>= 1.0.3, < 2.0)
24-
cocoapods-downloader (>= 1.4.0, < 2.0)
24+
cocoapods-downloader (>= 2.1, < 3.0)
2525
cocoapods-plugins (>= 1.0.0, < 2.0)
2626
cocoapods-search (>= 1.0.0, < 2.0)
27-
cocoapods-trunk (>= 1.4.0, < 2.0)
27+
cocoapods-trunk (>= 1.6.0, < 2.0)
2828
cocoapods-try (>= 1.1.0, < 2.0)
2929
colored2 (~> 3.1)
3030
escape (~> 0.0.4)
3131
fourflusher (>= 2.3.0, < 3.0)
3232
gh_inspector (~> 1.0)
3333
molinillo (~> 0.8.0)
3434
nap (~> 1.0)
35-
ruby-macho (>= 1.0, < 3.0)
36-
xcodeproj (>= 1.21.0, < 2.0)
37-
cocoapods-core (1.11.3)
38-
activesupport (>= 5.0, < 7)
35+
ruby-macho (>= 2.3.0, < 3.0)
36+
xcodeproj (>= 1.23.0, < 2.0)
37+
cocoapods-core (1.14.3)
38+
activesupport (>= 5.0, < 8)
3939
addressable (~> 2.8)
4040
algoliasearch (~> 1.0)
4141
concurrent-ruby (~> 1.1)
@@ -45,7 +45,7 @@ GEM
4545
public_suffix (~> 4.0)
4646
typhoeus (~> 1.0)
4747
cocoapods-deintegrate (1.0.5)
48-
cocoapods-downloader (1.6.3)
48+
cocoapods-downloader (2.1)
4949
cocoapods-plugins (1.0.0)
5050
nap
5151
cocoapods-search (1.0.1)
@@ -54,47 +54,48 @@ GEM
5454
netrc (~> 0.11)
5555
cocoapods-try (1.2.0)
5656
colored2 (3.1.2)
57-
concurrent-ruby (1.2.0)
57+
concurrent-ruby (1.2.3)
5858
escape (0.0.4)
5959
ethon (0.16.0)
6060
ffi (>= 1.15.0)
61-
ffi (1.15.5)
61+
ffi (1.16.3)
6262
fourflusher (2.3.1)
6363
fuzzy_match (2.0.4)
6464
gh_inspector (1.1.3)
6565
httpclient (2.8.3)
66-
i18n (1.12.0)
66+
i18n (1.14.1)
6767
concurrent-ruby (~> 1.0)
68-
json (2.6.3)
69-
minitest (5.17.0)
68+
json (2.7.1)
69+
minitest (5.21.1)
7070
molinillo (0.8.0)
7171
nanaimo (0.3.0)
7272
nap (1.1.0)
7373
netrc (0.11.0)
7474
public_suffix (4.0.7)
75-
rexml (3.2.5)
75+
rexml (3.2.6)
7676
ruby-macho (2.5.1)
77-
typhoeus (1.4.0)
77+
typhoeus (1.4.1)
7878
ethon (>= 0.9.0)
7979
tzinfo (2.0.6)
8080
concurrent-ruby (~> 1.0)
81-
xcodeproj (1.22.0)
81+
xcodeproj (1.23.0)
8282
CFPropertyList (>= 2.3.3, < 4.0)
8383
atomos (~> 0.1.3)
8484
claide (>= 1.0.2, < 2.0)
8585
colored2 (~> 3.1)
8686
nanaimo (~> 0.3.0)
8787
rexml (~> 3.2.4)
88-
zeitwerk (2.6.6)
88+
zeitwerk (2.6.12)
8989

9090
PLATFORMS
9191
ruby
9292

9393
DEPENDENCIES
94-
cocoapods (~> 1.11, >= 1.11.3)
94+
activesupport (>= 6.1.7.3, < 7.1.0)
95+
cocoapods (~> 1.13)
9596

9697
RUBY VERSION
97-
ruby 2.7.6p219
98+
ruby 2.6.10p210
9899

99100
BUNDLED WITH
100-
2.1.4
101+
1.17.2

example/IconsScreen.js

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
TouchableOpacity,
1010
View,
1111
useWindowDimensions,
12-
Button
12+
Button,
1313
} from 'react-native';
1414
import {Icon} from '@mrkpatchaa/react-native-ionicons';
1515
import {Icons} from '@mrkpatchaa/react-native-ionicons/src/map';
@@ -52,7 +52,7 @@ const App = () => {
5252
paddingBottom: 20,
5353
fontWeight: '600',
5454
fontSize: 30,
55-
textAlign: 'center'
55+
textAlign: 'center',
5656
}}>
5757
react-native-ionicons
5858
</Text>
@@ -64,10 +64,10 @@ const App = () => {
6464
paddingBottom: 8,
6565
}}>
6666
{display === 'grid' && (
67-
<Button title='List' onPress={() => setDisplay('list')} />
67+
<Button title="List" onPress={() => setDisplay('list')} />
6868
)}
6969
{display === 'list' && (
70-
<Button title='Grid' onPress={() => setDisplay('grid')} />
70+
<Button title="Grid" onPress={() => setDisplay('grid')} />
7171
)}
7272
<Text style={{fontSize: 16, color: '#007aff', fontWeight: '600'}}>
7373
#
@@ -102,18 +102,30 @@ const App = () => {
102102
<FlatList
103103
contentContainerStyle={{paddingHorizontal: 16}}
104104
numColumns={display === 'grid' ? 5 : 1}
105-
data={names.filter(item => iconStyle === 'filled' && !(item.endsWith('-outline') || item.endsWith('-sharp')) || item.endsWith(`-${iconStyle}`))}
105+
data={names.filter(
106+
item =>
107+
(iconStyle === 'filled' &&
108+
!(item.endsWith('-outline') || item.endsWith('-sharp'))) ||
109+
item.endsWith(`-${iconStyle}`),
110+
)}
106111
keyExtractor={item => item}
107112
key={display}
108113
renderItem={({item}) => {
109114
return (
110-
<View style={{padding: 16, alignItems:'center', flexDirection: display === 'list' ? 'row' : 'column'}}>
115+
<View
116+
style={{
117+
padding: 16,
118+
alignItems: 'center',
119+
flexDirection: display === 'list' ? 'row' : 'column',
120+
}}>
111121
<Icon
112122
name={item}
113123
size={iconSize}
114124
color={color.length !== 6 ? '#000' : '#' + color}
115125
/>
116-
{display === 'list' && <Text style={{marginLeft: 5}}>{item}</Text> }
126+
{display === 'list' && (
127+
<Text style={{marginLeft: 5}}>{item}</Text>
128+
)}
117129
</View>
118130
);
119131
}}
@@ -122,4 +134,4 @@ const App = () => {
122134
);
123135
};
124136

125-
export default App;
137+
export default App;

example/README.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
2+
3+
# Getting Started
4+
5+
>**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
6+
7+
## Step 1: Start the Metro Server
8+
9+
First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
10+
11+
To start Metro, run the following command from the _root_ of your React Native project:
12+
13+
```bash
14+
# using npm
15+
npm start
16+
17+
# OR using Yarn
18+
yarn start
19+
```
20+
21+
## Step 2: Start your Application
22+
23+
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app:
24+
25+
### For Android
26+
27+
```bash
28+
# using npm
29+
npm run android
30+
31+
# OR using Yarn
32+
yarn android
33+
```
34+
35+
### For iOS
36+
37+
```bash
38+
# using npm
39+
npm run ios
40+
41+
# OR using Yarn
42+
yarn ios
43+
```
44+
45+
If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
46+
47+
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
48+
49+
## Step 3: Modifying your App
50+
51+
Now that you have successfully run the app, let's modify it.
52+
53+
1. Open `App.tsx` in your text editor of choice and edit some lines.
54+
2. For **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Developer Menu** (<kbd>Ctrl</kbd> + <kbd>M</kbd> (on Window and Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (on macOS)) to see your changes!
55+
56+
For **iOS**: Hit <kbd>Cmd ⌘</kbd> + <kbd>R</kbd> in your iOS Simulator to reload the app and see your changes!
57+
58+
## Congratulations! :tada:
59+
60+
You've successfully run and modified your React Native App. :partying_face:
61+
62+
### Now what?
63+
64+
- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
65+
- If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started).
66+
67+
# Troubleshooting
68+
69+
If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
70+
71+
# Learn More
72+
73+
To learn more about React Native, take a look at the following resources:
74+
75+
- [React Native Website](https://reactnative.dev) - learn more about React Native.
76+
- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
77+
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
78+
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
79+
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.

example/__tests__/App-test.tsx renamed to example/__tests__/App.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import 'react-native';
66
import React from 'react';
77
import App from '../App';
88

9+
// Note: import explicitly to use the types shipped with jest.
10+
import {it} from '@jest/globals';
11+
912
// Note: test renderer must be required after react-native.
1013
import renderer from 'react-test-renderer';
1114

0 commit comments

Comments
 (0)