Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 721 Bytes

File metadata and controls

35 lines (29 loc) · 721 Bytes

Working on React-translation

Starting the examples

React (examples/react)

From the root project, run:

# Setup the library
npm install
npm run build
npm link

# Link it to the example
cd examples/react
npm install
npm link @psyycker/react-translation

# Start the example
npm start

React Native (examples/reactnative)

Expo for some reason is unable to resolve the library if doing a link or use "file:../.."
The solution is instead to pack the lib as a tgz and use it instead
This is for development only. The library itself works.

# Setup the library and pack
npm install
npm run build
./pack-for-expo.sh

# Setup the expo project
cd examples/reactnative
npm install