Skip to content

Commit

Permalink
[web] Directly import createElement (expo#8773)
Browse files Browse the repository at this point in the history
* Directly import createElement to avoid name change issue in react-native-web@0.12

* Update CHANGELOG.md

* Update CHANGELOG.md
  • Loading branch information
EvanBacon committed Jun 16, 2020
1 parent ab85e47 commit 747555b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
### 🎉 New features

- Delete `prop-types` in favor of TypeScript. ([#8680](https://github.com/expo/expo/pull/8680) by [@EvanBacon](https://github.com/EvanBacon))
- [camera] Directly import `createElement` from `react-native-web` for RNW v12 support. ([#8773](https://github.com/expo/expo/pull/8773) by [@EvanBacon](https://github.com/EvanBacon))

### 🐛 Bug fixes

## 8.3.1 — 2020-05-29

*This version does not introduce any user-facing changes.*
_This version does not introduce any user-facing changes._

## 8.3.0 — 2020-05-27

Expand Down
3 changes: 2 additions & 1 deletion build/ExponentCamera.web.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/ExponentCamera.web.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/ExponentCamera.web.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { forwardRef } from 'react';
import { createElement, findNodeHandle, StyleSheet, View } from 'react-native';
import { findNodeHandle, StyleSheet, View } from 'react-native';
import createElement from 'react-native-web/dist/exports/createElement';

import {
CameraCapturedPicture,
Expand Down

0 comments on commit 747555b

Please sign in to comment.