react-native-drawing
v1.6.0
Published
A React Native library that provides a canvas to perform drawing actions
Downloads
20
Maintainers
Readme
react-native-drawing
A drawing library for React Native using Expo. This library provides an easy-to-use drawing canvas with customizable features.
Installation
To install the library, you must be in the root of your working project
npx expo install react-native-webview
npx expo install react-native-drawingAPI Reference
For detailed API documentation, visit API Reference.
Local Testing
To test the project locally, follow these steps:
Navigate to the root of an expo project
Clone the library and install dependencies
npx expo install react-native-webview
git clone https://github.com/rykycastilla/react-native-drawing.git
cd react-native-drawing
npm install- Set the public ip of your development device in
./.env.json. This allows access through app container to the drawing web core server (necessary for development). By default it islocalhost.
{
...
"WEB_CORE_DEV_IP": <your-public-ip>
}- Start the drawing web core server
npm run devNow, you can start Expo dev server in another shell to test the library in development
To test production mode, you must run
npm run buildto compile. This allow you to use the library without the drawing core server as a production preview
⚠️ Warning: When you are using development mode, refer to the library with
import {} from '<react-native-drawing-path>/lib/src'And when you are using production preview use
import {} from '<react-native-drawing-path>'Remember this, Development mode has debugging capabilites enabled, such as javascript inspection with Browser DevTools and changes are applied without recompiling the entire project every time
This library has been tested with Expo SDK 51 and 52.
