Skip to content

Commit

Permalink
Import from react-native directly (oblador#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador authored Oct 24, 2021
1 parent 27f177f commit fd1c86f
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 24 deletions.
5 changes: 0 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
"prettier"
],
"parser": "babel-eslint",
"settings": {
"import/ignore": [
"lib/react-native.js"
]
},
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/require-default-props": [0],
Expand Down
2 changes: 1 addition & 1 deletion Examples/IconExplorer/src/IconList.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Text,
TextInput,
View,
} from './react-native';
} from 'react-native';

const styles = StyleSheet.create({
container: {
Expand Down
2 changes: 1 addition & 1 deletion Examples/IconExplorer/src/IconSetList.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Text,
TouchableHighlight,
View,
} from './react-native';
} from 'react-native';

import ICON_SETS from './icon-sets';

Expand Down
1 change: 0 additions & 1 deletion Examples/IconExplorer/src/react-native.android.js

This file was deleted.

1 change: 0 additions & 1 deletion Examples/IconExplorer/src/react-native.ios.js

This file was deleted.

1 change: 0 additions & 1 deletion Examples/IconExplorer/src/react-native.osx.js

This file was deleted.

1 change: 0 additions & 1 deletion Examples/IconExplorer/src/react-native.windows.js

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ These steps are optional and only needed if you want to use the `Icon.getImageSo
}
```

### OSX via [`react-native-desktop`](https://github.com/ptmt/react-native-desktop)
### macOS via [`react-native-macos`](https://github.com/microsoft/react-native-macos)

- Browse to `node_modules/react-native-vector-icons` and drag the folder `Fonts` to your project in Xcode. **Make sure your app is checked under "Add to targets" and that "Create folder references" is checked**.
- Edit `Info.plist` and add a property called **Application fonts resource path** (or `ATSApplicationFontsPath` if Xcode won't autocomplete/not using Xcode) and type `Fonts` as the value.

_Note: you need to recompile your project after adding new fonts, also ensure that the `Fonts` folder also appear under **Copy Bundle Resources** in **Build Phases**._

### Windows via [`react-native-windows`](https://github.com/ReactWindows/react-native-windows)
### Windows via [`react-native-windows`](https://github.com/microsoft/react-native-windows)

- In the top level projects (/windows/project-name/Assets), copy and paste the font files.
- Open your solution in Visual Studio, right click the Assets folder in your solution, click **Add > Existing Item**.
Expand Down
2 changes: 1 addition & 1 deletion lib/create-icon-set-from-fontawesome5.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Platform } from './react-native';
import { Platform } from 'react-native';
import createMultiStyleIconSet from './create-multi-style-icon-set';

const FA5Style = {
Expand Down
2 changes: 1 addition & 1 deletion lib/create-icon-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PixelRatio,
processColor,
Text,
} from './react-native';
} from 'react-native';

import ensureNativeModuleAvailable from './ensure-native-module-available';
import createIconSourceCache from './create-icon-source-cache';
Expand Down
2 changes: 1 addition & 1 deletion lib/ensure-native-module-available.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Platform, NativeModules } from './react-native';
import { Platform, NativeModules } from 'react-native';

const NativeIconAPI =
NativeModules.RNVectorIconsManager || NativeModules.RNVectorIconsModule;
Expand Down
2 changes: 1 addition & 1 deletion lib/icon-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import omit from 'lodash.omit';
import pick from 'lodash.pick';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, Text, TouchableHighlight, View } from './react-native';
import { StyleSheet, Text, TouchableHighlight, View } from 'react-native';

const styles = StyleSheet.create({
container: {
Expand Down
1 change: 0 additions & 1 deletion lib/react-native.js

This file was deleted.

3 changes: 0 additions & 3 deletions lib/react-native.osx.js

This file was deleted.

3 changes: 0 additions & 3 deletions lib/react-native.web.js

This file was deleted.

0 comments on commit fd1c86f

Please sign in to comment.