Skip to content

Commit

Permalink
[expo-gl-cpp] fix crash in react-native 0.62 (#8352)
Browse files Browse the repository at this point in the history
* [expo-gl-cpp] fix crash in react-native 0.62

* [expo-gl-cpp] update CHANGELOG
  • Loading branch information
wkozyra95 committed May 20, 2020
1 parent 8ecc6ae commit 7fbde60
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 3 deletions.
Binary file modified packages/expo-gl-cpp/android/dist/arm64-v8a/libexpo-gl.so
Binary file not shown.
Binary file modified packages/expo-gl-cpp/android/dist/armeabi-v7a/libexpo-gl.so
Binary file not shown.
Binary file modified packages/expo-gl-cpp/android/dist/x86/libexpo-gl.so
Binary file not shown.
Binary file modified packages/expo-gl-cpp/android/dist/x86_64/libexpo-gl.so
Binary file not shown.
4 changes: 1 addition & 3 deletions packages/expo-gl-cpp/cpp/EXGLContext.cpp
Expand Up @@ -48,9 +48,7 @@ UEXGLContextId EXGLContext::ContextCreate(JSGlobalContextRef jsCtx) {
jsEXGLContextMap = JSObjectMake(jsCtx, nullptr, nullptr);
EXJSObjectSetValueWithUTF8CStringName(jsCtx, jsGlobal, "__EXGLContexts", jsEXGLContextMap);
}
std::stringstream ss;
ss << exglCtxId;
auto exglCtxIdStr = ss.str();
auto exglCtxIdStr = std::to_string(exglCtxId);
EXJSObjectSetValueWithUTF8CStringName(jsCtx, jsEXGLContextMap,
exglCtxIdStr.c_str(), exglCtx->getJSObject());

Expand Down
1 change: 1 addition & 0 deletions packages/expo-gl/CHANGELOG.md
Expand Up @@ -10,5 +10,6 @@

### 🐛 Bug fixes

- Fix crash in React Native 0.62 when creating a context. ([#8352](https://github.com/expo/expo/pull/8352) by [@wkozyra95](https://github.com/wkozyra95))
- Allow createElement & unstable_createElement usage for web. ([#7995](https://github.com/expo/expo/pull/7995) by [@wood1986](https://github.com/wood1986))
- Fix depth/stencil buffers not working correctly with `three.js`. ([#7543](https://github.com/expo/expo/pull/7543) by [@tsapeta](https://github.com/tsapeta))

0 comments on commit 7fbde60

Please sign in to comment.