![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@real2u/react-ar-components
Advanced tools
React components for Augmented Reality on the web.
a
nchor tag (mobile)button
tag (mobile)img
tag (mobile)param | description | default |
---|---|---|
style | object containing custom CSS classes to customize this component | { modelViewerSmall: '', modelViewerBig: '', modelViewerBackground: '' } |
onClick | function to handle click event | () => undefined |
componentDidMount | funciton to handle mount event | () => undefined |
name | model name | '' |
progressBarPosition | progress bar position ('top' , 'middle' or 'bottom' ) | 'top' |
progressBarColor | progress bar color ('gray' , 'rgba(89, 84, 84, 0.6)' , '#c5c5c5' ) | null |
exposure | controls the exposure of both the model and skybox | '0.5' |
shadowIntensity | opacity of the shadow | '1' |
shadowSoftness | blurriness of the shadow | '0' |
poster | image url displayed before loading the model | null |
glb | url of the GLB file for desktop devices | '' |
autoRotate | determines if the model will rotate automatically | true |
cameraControls | determines if the user will control the camera | true |
popup | determines if the viewer will be able to open a popup window | true |
onToggle | function to handle popup toggle event | '' |
param | description | default |
---|---|---|
style | object containing custom CSS classes to customize this component | { link : '' } |
onClick | function to handle click event | () => undefined |
componentDidMount | funciton to handle mount event | () => undefined |
usdz | url of the USDZ file for iOS devices | '' |
glb | url of the GLB file for Android devices | '' |
name | model name | '' |
resize | determines if model allows rescale | false |
param | description | default |
---|---|---|
style | object containing custom CSS classes to customize this component | { container : '', text: '' } |
...rest | same as ARLink |
param | description | default |
---|---|---|
...rest | same as ARLink |
The ARImage
component adds a transparent overlay on top of an existing img
, which is why it should be mounted as a child of an enclosing container.
param | description | default |
---|---|---|
glbs | array of GLB urls for desktop devices | [] |
...rest | same as ModelViewer |
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import '@google/model-viewer'
import {
ARImage,
ModelViewer,
ARButton,
ARCarousel,
ARLink
} from '@real2u/react-ar-components'
import style from './style.module.css'
const usdz = 'http://localhost:8080/mesh_01000.usdz'
const glb = 'http://localhost:8080/mesh_01000.glb'
const imageUrl = 'https://via.placeholder.com/150'
const App = () => (
<div>
<div>
<h1>ARLink</h1>
<ARLink glb={glb} usdz={usdz}>
View in 3D
</ARLink>
</div>
<div>
<h1>ARImage</h1>
<div style={{ width: '200px' }}>
<img src={imageUrl} alt="3D model" style={{ width: '100%' }}/>
<ARImage glb={glb} usdz={usdz} style={style} />
</div>
</div>
<div>
<h1>ModelViewer</h1>
<ModelViewer glb={glb} name="3D model" style={style}/>
</div>
<div>
<h1>ARButton</h1>
<ARButton glb={glb} usdz={usdz} text="View in 3D" style={style} />
</div>
<div>
<h1>ARCarousel</h1>
<ARCarousel glbs={[glb, glb, glb]} style={style}/>
</div>
</div>
)
ReactDOM.render(<App/>, document.getElementById('root'))
FAQs
React components for Augmented Reality on the web.
The npm package @real2u/react-ar-components receives a total of 3 weekly downloads. As such, @real2u/react-ar-components popularity was classified as not popular.
We found that @real2u/react-ar-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.