React Native FBT
The module is forked from
react-native-fbt
. Released to@dooboo/react-native-fbt
. This repo fixes the build problem caused by thecodegen
temporarily.
React Native module to enable the use of the FBT translation framework in React Native apps (iOS/Android).
$ yarn add @dooboo/react-native-fbt --dev
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-fbt
and add Fbt.xcodeproj
libFbt.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)android/app/src/main/java/[...]/MainApplication.java
import com.facebook.react.modules.FbtPackage;
to the imports at the top of the filenew FbtPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-fbt'
project(':react-native-fbt').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fbt/android')
android/app/build.gradle
:
compile project(':react-native-fbt')