Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
80faaf9
renamed example app name
mzorz Apr 12, 2018
1e51c94
added example folder to hold the example app, and added metro bundler…
mzorz Apr 12, 2018
f52b0aa
WIP restructuring of folders and files
mzorz Apr 13, 2018
4ef21b4
Ignore yarn-error.log files
maxme Apr 13, 2018
bf98c79
Remove the _start_ command from the root package.json and add new com…
maxme Apr 13, 2018
c42c18f
New package.json file with the basic commands to start and run the an…
maxme Apr 13, 2018
f285e36
Move Application/src to src/ and fix the gradle build in the library,…
maxme Apr 13, 2018
cf1cd7d
Update the build file to get dependencies from jitpack
maxme Apr 13, 2018
b38442c
Remove settings.gradle file from the library
maxme Apr 13, 2018
91630dd
Fix the gradle build in the example directory
maxme Apr 13, 2018
d54db83
Update lock files
maxme Apr 13, 2018
83dfac1
Remove settings.gradle file from the library directory
maxme Apr 13, 2018
0b92e66
Fix the gradle build in the example directory
maxme Apr 13, 2018
45d0b9f
Update lock files
maxme Apr 13, 2018
522c849
refactored namespace to org.wordpress.mobile
mzorz Apr 16, 2018
6ba4615
fixed merge conflict, restoring package-lock.json
mzorz Apr 16, 2018
cbe8cef
Fix react/react-native dependencies and proptypes peer-dependency
maxme Apr 16, 2018
c1dcd37
fixed application name in ReactNativePackageManager call, and fixed o…
mzorz Apr 16, 2018
60c5ff4
deleted unused resources
mzorz Apr 16, 2018
f1ab5e9
Update _reactRootView.startReactApplication_ app name
maxme Apr 16, 2018
a1d40a7
Merge branch 'issue/5-project-restructure' of github.com:wordpress-mo…
maxme Apr 16, 2018
77bd921
upadted README
mzorz Apr 16, 2018
d240e21
Merge branch 'issue/5-project-restructure' of https://github.com/word…
mzorz Apr 16, 2018
0dc4dd4
moved test content from Java to a JS file to make the test text be se…
mzorz Apr 16, 2018
2b92ccf
removed commented line
mzorz Apr 16, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]

[include]

[libs]

[lints]

[options]

[strict]
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ gradle.properties
# Generated by gradle
crashlytics.properties

# npm
# npm
node_modules/

# yarn
yarn-error.log
82 changes: 82 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,85 @@ Wrapping Aztec Android and Aztec iOS in a React Native component
# License

GPL v2


## Directory structure

```
.
├── example
│   ├── android
│   ├── ios
│   ├── app.json
│   ├── index.android.js
│   ├── index.ios.js
│   └── package.json
├── android
│ └── src
│    └── main
│    └── java
│       └── org
│       └── wordpress
│       └── mobile
│       └── ReactNativeAztec
│       ├── ReactAztecBlurEvent.java
│       ├── ReactAztecEndEditingEvent.java
│       ├── ReactAztecFocusEvent.java
│       ├── ReactAztecManager.java
│       ├── ReactAztecPackage.java
│       ├── ReactAztecText.java
│       └── ReactAztecView.java
├── src
│   └── AztecView.js
├── index.js
├── package.json
├── LICENSE.md
└── README.md
```

If you have to change Android native code, you must have a look at the code in `android/src/main/java/` folder.

## Run the example app

At the root folder, run:
```
$ yarn clean:install
```

Make sure to have an emulator running or an Android device connected, and then:

```
$ cd example/
$ react-native run-android
```

This will build the Android library (via `gradle`) and example app, then launch the main example activity on your connected device and run the Metro bundler at the same time.


## FAQ / Troubleshooting

Q: The example app doesn't run

A: Make sure you have yarn and babel installed (https://yarnpkg.com/lang/en/docs/install/)


Q: The example app gets compiled but ReactNative cannot connect to Metro bundler (I'm on a real device attached through USB)

A: To debug on the device through USB, remember to revert ports before launching metro:
`adb reverse tcp:8081 tcp:8081`


Q: The example app gets compiled but ReactNative shows an error

A: try running, from the root folder in the project
```
yarn clean
yarn
cd example/
yarn start --reset-cache
```
This will start metro in this window, then compile/run the app with the following command:
```
yarn android # in another shell
```

88 changes: 0 additions & 88 deletions android/Application/build.gradle

This file was deleted.

143 changes: 0 additions & 143 deletions android/Application/src/main/java/com/example/android/MyFragment.java

This file was deleted.

Loading