Skip to content

Commit

Permalink
Release 1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
rordeix committed Dec 6, 2024
1 parent de61142 commit d74976e
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 38 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,25 +145,25 @@ To install the private developer GitHub package registry you would need to downl
store it in a local directory and run the following command:

```sh
yarn add @flexa/flexa-react-native@"./<localdir>/<flexa-flexa-react-native-<version>.tgz"
yarn add @flexahq/flexa-react-native@"./<localdir>/<flexa-flexa-react-native-<version>.tgz"
```

or with a GitHub personal access token (classic)

```sh
npm config set "@flexa:registry" "https://npm.pkg.github.com/" && \
npm config set "@flexahq:registry" "https://npm.pkg.github.com/" && \
npm config set "//npm.pkg.github.com/:_authToken" "YOUR_AUTH_TOKEN" && \
yarn add @flexa/flexa-react-native
yarn add @flexahq/flexa-react-native
```

When published on NPM, the package will be available to install:

```sh
npm install @flexa/flexa-react-native
npm install @flexahq/flexa-react-native
```
or
```sh
yarn add @flexa/flexa-react-native
yarn add @flexahq/flexa-react-native
```

and finally install the pods for the ios platform
Expand All @@ -181,7 +181,7 @@ Execute the following SDK init function on the top level parent component of you
You can obtain a publishableKey for the app integration from Flexa.

```js
import { init } from '@flexa/flexa-react-native';
import { init } from '@flexahq/flexa-react-native';

publishableKey = "publishable_test_xyz"

Expand Down Expand Up @@ -291,7 +291,7 @@ A callback is passed which will return a TransactionRequest object when the Flex


```js
import { payment, TransactionRequest } from '@flexa/flexa-react-native';
import { payment, TransactionRequest } from '@flexahq/flexa-react-native';

const paymentCallback = (transactionRequest: TransactionRequest) => {
//execute the transaction depending on parent app logic here
Expand Down
25 changes: 16 additions & 9 deletions example/android/app/src/main/assets/index.android.bundle

Large diffs are not rendered by default.

27 changes: 17 additions & 10 deletions example/ios/main.jsbundle

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flexa/flexa-react-native-example",
"description": "Example app for @flexa/flexa-react-native",
"name": "@flexahq/flexa-react-native-example",
"description": "Example app for @flexahq/flexa-react-native",
"version": "0.0.1",
"private": true,
"scripts": {
Expand All @@ -10,10 +10,10 @@
"pods": "pod-install --quiet",
"build:android": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/",
"build:ios": "react-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform ios",
"postinstall": "patch-package && rm -rf ./node_modules/@flexa/flexa-react-native/node_modules/react && rm -rf ./node_modules/@flexa/flexa-react-native/node_modules/react-native && rm -rf ./node_modules/@flexa/flexa-react-native/example"
"postinstall": "patch-package && rm -rf ./node_modules/@flexahq/flexa-react-native/node_modules/react && rm -rf ./node_modules/@flexahq/flexa-react-native/node_modules/react-native && rm -rf ./node_modules/@flexahq/flexa-react-native/example"
},
"dependencies": {
"@flexa/flexa-react-native": "../",
"@flexahq/flexa-react-native": "../",
"react": "18.2.0",
"react-native": "0.72.7"
},
Expand Down
2 changes: 1 addition & 1 deletion example/react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');

module.exports = {
dependencies: {
'@flexa/flexa-react-native': {
'@flexahq/flexa-react-native': {
root: path.join(__dirname, '..'),
},
},
Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
processUniversalLink,
CUSTODY_MODEL,
TransactionRequest,
} from '@flexa/flexa-react-native';
} from '@flexahq/flexa-react-native';

const WEBVIEW_THEME = {
android: {
Expand Down
2 changes: 1 addition & 1 deletion example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@
"@babel/helper-validator-identifier" "^7.22.20"
to-fast-properties "^2.0.0"

"@flexa/flexa-react-native@../":
"@flexahq/flexa-react-native@../":
version "1.0.5"

"@hapi/hoek@^9.0.0":
Expand Down
2 changes: 1 addition & 1 deletion flexa-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Pod::Spec.new do |s|
}

s.dependency "React-Core"
s.dependency "Flexa", "~> 1.0.8"
s.dependency "Flexa", "~> 1.0.9"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flexa/flexa-react-native",
"version": "1.0.8",
"name": "@flexahq/flexa-react-native",
"version": "1.0.9",
"description": "Flexa Components",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion src/initialize.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NativeModules, Platform } from 'react-native';

const LINKING_ERROR =
`The package '@flexa/flexa-react-native' doesn't seem to be linked. Make sure: \n\n` +
`The package '@flexahq/flexa-react-native' doesn't seem to be linked. Make sure: \n\n` +
Platform?.select({ ios: "- You have run 'pod install'\n", default: '' }) +
'- You rebuilt the app after installing the package\n' +
'- You are not using Expo managed workflow\n';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@flexa/flexa-react-native": ["./src/index"]
"@flexahq/flexa-react-native": ["./src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down

0 comments on commit d74976e

Please sign in to comment.