[change] createElement -> unstable_createElement

Rename the 'createElement' export to reflect its unstable status.

Fix #1385
This commit is contained in:
Nicolas Gallagher
2019-10-07 14:20:49 -07:00
parent 3ac0b96498
commit d4b9f35d33
12 changed files with 38 additions and 34 deletions
+5 -2
View File
@@ -1,5 +1,5 @@
import React, { Fragment } from 'react';
import { createElement, StyleSheet, Text } from 'react-native';
import { unstable_createElement as createElement, StyleSheet, Text } from 'react-native';
const styles = StyleSheet.create({
root: {
@@ -18,7 +18,10 @@ const createIcon = children => {
createElement(
'svg',
{
style: StyleSheet.compose(styles.root, props.style),
style: StyleSheet.compose(
styles.root,
props.style
),
width: 24,
height: 24,
viewBox: '0 0 24 24'
@@ -1,5 +1,5 @@
/* eslint-disable react/prop-types */
import { createElement, StyleSheet } from 'react-native';
import { unstable_createElement as createElement, StyleSheet } from 'react-native';
const Dot = ({ size, x, y, children, color }) =>
createElement('div', {
@@ -1,5 +1,5 @@
/* eslint-disable react/prop-types */
import { createElement } from 'react-native';
import { unstable_createElement as createElement } from 'react-native';
import React from 'react';
import styles from './styles';
@@ -1,5 +1,5 @@
/* eslint-disable react/prop-types */
import { createElement } from 'react-native';
import { unstable_createElement as createElement } from 'react-native';
import React from 'react';
import styles from './styles';
@@ -1,5 +1,5 @@
/* eslint-disable react/prop-types */
import { createElement } from 'react-native';
import { unstable_createElement as createElement } from 'react-native';
import React from 'react';
import styles from './styles';
@@ -1,5 +1,5 @@
/* eslint-disable react/prop-types */
import { createElement } from 'react-native';
import { unstable_createElement as createElement } from 'react-native';
import React from 'react';
import styles from './styles';