You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-72Lines changed: 2 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,79 +9,9 @@ Babylon React Native is in the early phase of its development, and has the follo
9
9
1. Android support only - support for both iOS and Windows is planned.
10
10
1. JavaScriptCore only - support for Hermes is planned, and support for other JavaScript engines used by React Native is uncertain.
11
11
12
-
## Consuming
12
+
## Usage
13
13
14
-
This quick overview will help you understand the constructs provided by Babylon React Native and how to use them in a React Native application. See the Playground app's [App.tsx](Apps/Playground/App.tsx) for example usage.
15
-
16
-
### Dependencies
17
-
18
-
This package has several **peer dependencies**. If these dependencies are unmet, `react-native` will emit warnings. Be sure to add these dependencies to your project.
19
-
20
-
### C++ Build Requirements
21
-
22
-
This package includes C++ source, so platform specific tooling to build C++ code must be installed.
23
-
24
-
### Android Requirements
25
-
26
-
The minimum Android SDK version is 24. This must be set as `minSdkVersion` in the consuming project's `build.gradle` file.
27
-
28
-
### `useEngine`
29
-
30
-
`useEngine` is a **custom React hook** that manages the lifecycle of a Babylon engine instance in the context of an owning React component. `useEngine` creates an engine instance **asynchronously** which is used to create and configure scenes. Typically scene initialization code should exist in a `useEffect` triggered by an `engine` state change. For example:
`EngineView` is a **custom React Native view** that presents a `camera` from a Babylon `scene`. A `camera` therefore is assigned to the `EngineView`. For example:
Note: Currently only one `EngineView` can be active at any given time. Multi-view will be supported in a future release.
14
+
See the [package usage](Apps/Playground/node_modules/@babylonjs/react-native/README.md) or the Playground app's [App.tsx](Apps/Playground/App.tsx) for example usage.
0 commit comments