-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2788 from nanjingboy/fix/mobx
fix(mobx):支付宝 & RN 端问题修复
- Loading branch information
Showing
6 changed files
with
66 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
export { inject, observer } from '@tarojs/mobx-common' | ||
import { Component } from '@tarojs/taro-h5' | ||
import { createElement } from 'nervjs' | ||
import { inject as originInject } from '@tarojs/mobx-common' | ||
|
||
export { default as Provider } from './Provider' | ||
export function inject () { | ||
return originInject(...arguments, { Component, createElement }) | ||
} | ||
|
||
export { observer } from '@tarojs/mobx-common' | ||
|
||
export { default as Provider } from './Provider' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
export { inject, observer } from '@tarojs/mobx-common' | ||
export { default as Provider } from './Provider' | ||
import { Component } from '@tarojs/taro-rn' | ||
import { createElement } from 'react' | ||
import { inject as originInject } from '@tarojs/mobx-common' | ||
|
||
export function inject () { | ||
return originInject(...arguments, { Component, createElement }) | ||
} | ||
|
||
export { observer } from '@tarojs/mobx-common' | ||
|
||
export { default as Provider } from './Provider' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters