Skip to content

Commit 9e701e8

Browse files
committed
rename functions
1 parent ff1a378 commit 9e701e8

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

components/lib/createArComponent.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from 'react';
2-
import { NativeModules } from 'react-native';
2+
import { NativeModules, processColor } from 'react-native';
33
import PropTypes from 'prop-types';
44
import filter from 'lodash/filter';
55
import isDeepEqual from 'fast-deep-equal';
@@ -20,7 +20,7 @@ import {
2020
scale,
2121
transition,
2222
} from './propTypes';
23-
import { processColor, processMaterialPropertyContents } from './parseMaterial';
23+
import processMaterial from './processMaterial';
2424
import generateId from './generateId';
2525

2626
const { ARGeosManager } = NativeModules;
@@ -74,9 +74,7 @@ export default (mountConfig, propTypes = {}, nonUpdateablePropKeys = []) => {
7474
...(props.shadowColor
7575
? { shadowColor: processColor(props.shadowColor) }
7676
: {}),
77-
...(props.material
78-
? { material: processMaterialPropertyContents(props.material) }
79-
: {}),
77+
...(props.material ? { material: processMaterial(props.material) } : {}),
8078
});
8179

8280
const getNonNodeProps = props => ({
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const materialPropertiesWithMaps = [
99
'specular',
1010
];
1111

12-
export function processMaterialPropertyContents(material) {
12+
export default function processMaterial(material) {
1313
const propsToUpdate = intersection(
1414
Object.keys(material),
1515
materialPropertiesWithMaps,
@@ -30,5 +30,3 @@ export function processMaterialPropertyContents(material) {
3030
material,
3131
);
3232
}
33-
34-
export { processColor };

0 commit comments

Comments
 (0)