$ react-native link react-native-wordpress-bridge
- In Xcode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-bridge
and addRNReactNativeGutenbergBridge.xcodeproj
- In Xcode, in the project navigator, select your project. Add
libRNReactNativeGutenbergBridge.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNReactNativeGutenbergBridgePackage;
to the imports at the top of the file - Add
new RNReactNativeGutenbergBridgePackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':@wordpress_react-native-bridge' project(':@wordpress_react-native-bridge').projectDir = new File(rootProject.projectDir, './gutenberg/packages/react-native-bridge/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:implementation project(':@wordpress_react-native-bridge')
import RNReactNativeGutenbergBridge from '@wordpress/react-native-bridge';
// TODO: What to do with the module?
RNReactNativeGutenbergBridge;
This is an individual package that's part of the Gutenberg project. The project is organized as a monorepo. It's made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to npm and used by WordPress as well as other software projects.
To find out more about contributing to this package or Gutenberg as a whole, please read the project's main contributor guide.